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

Skip to content

Commit 54f93f4

Browse files
archmojetpinard
authored andcommitted
updated syntax and comments
1 parent 538710c commit 54f93f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,15 +458,15 @@ module.exports = function(root, svg, parcoordsLineLayers, styledData, layout, ca
458458
.each(function(d) {
459459
if(d.viewModel) {
460460
if((!d.lineLayer) ||
461-
(callbacks)) { // recreate in case of having callbacks e.g. restyle, Should we explicitly test for callback to be a restyle?
461+
(callbacks)) { // recreate in case of having callbacks e.g. restyle. Should we test for callback to be a restyle?
462462
d.lineLayer = lineLayerMaker(this, d);
463463
} else d.lineLayer.update(d);
464464

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

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

471471
d.lineLayer.render(d.viewModel.panels, setChanged);
472472
}

0 commit comments

Comments
 (0)