Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b76026

Browse files
archmojetpinard
authored andcommitted
put render call outside key check
1 parent 0dd337e commit 6b76026

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,12 @@ module.exports = function(root, svg, parcoordsLineLayers, styledData, layout, ca
462462
d.lineLayer = lineLayerMaker(this, d);
463463
} else d.lineLayer.update(d);
464464

465-
if(d.key) {
466-
d.viewModel[d.key] = d.lineLayer;
465+
if(d.key) d.viewModel[d.key] = d.lineLayer;
467466

468-
var setChanged = ((!d.context) || // don't update background
469-
((d.key !== 'contextLayer') || (callbacks))); // unless there is a callback on the context layer. Should we test the callback?
467+
var setChanged = ((!d.context) || // don't update background
468+
(callbacks)); // unless there is a callback on the context layer. Should we test the callback?
470469

471-
d.lineLayer.render(d.viewModel.panels, setChanged);
472-
}
470+
d.lineLayer.render(d.viewModel.panels, setChanged);
473471
}
474472
});
475473

0 commit comments

Comments
 (0)