MCPcopy Index your code
hub / github.com/plotly/plotly.js / getNewRev

Function getNewRev

src/plot_api/plot_api.js:2381–2394  ·  view source on GitHub ↗
(revAttr, container)

Source from the content-addressed store, hash-verified

2379// inheritance manually. Note that only `undefined` inherits - other
2380// falsy values are returned.
2381function getNewRev(revAttr, container) {
2382 var newRev = nestedProperty(container, revAttr).get();
2383 if (newRev !== undefined) return newRev;
2384
2385 var parts = revAttr.split('.');
2386 parts.pop();
2387 while (parts.length > 1) {
2388 parts.pop();
2389 newRev = nestedProperty(container, parts.join('.') + '.uirevision').get();
2390 if (newRev !== undefined) return newRev;
2391 }
2392
2393 return container.uirevision;
2394}
2395
2396function getFullTraceIndexFromUid(uid, fullData) {
2397 for (var i = 0; i < fullData.length; i++) {

Callers 1

applyUIRevisionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…