8000 Add comment to explain else case · plotly/plotly.js@5f128bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f128bb

Browse files
committed
Add comment to explain else case
1 parent 7e3c6c9 commit 5f128bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,9 @@ function diffLayout(gd, oldFullLayout, newFullLayout, immutable, transition) {
28312831
// what you're asking for HAS changed, so clear _inputDomain and let us start from scratch
28322832
newFullLayout[key]._inputDomain = null;
28332833
}
2834+
// We skip the else case (newDomain !== oldInputDomain && newDomain === oldDomain)
2835+
// because it's likely that if the newDomain and oldDomain are the same, the user
2836+
// passed in the same layout object and we should keep the _inputDomain.
28342837
}
28352838
}
28362839

0 commit comments

Comments
 (0)
0