Skip to content

Commit a72f9da

Browse files
committed
command: rename lookupTable to bindingsByValue
1 parent 5971c16 commit a72f9da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plots/command.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
4141
}
4242

4343
// Either create or just recompute this:
44-
ret.lookupTable = {};
44+
ret.bindingsByValue = {};
4545

46-
var binding = exports.hasSimpleAPICommandBindings(gd, commandList, ret.lookupTable);
46+
var binding = exports.hasSimpleAPICommandBindings(gd, commandList, ret.bindingsByValue);
4747

4848
if(container && container._commandObserver) {
4949
if(!binding) {
@@ -78,14 +78,14 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
7878
if(update.changed && onchange) {
7979
// Disable checks for the duration of this command in order to avoid
8080
// infinite loops:
81-
if(ret.lookupTable[update.value] !== undefined) {
81+
if(ret.bindingsByValue[update.value] !== undefined) {
8282
ret.disable();
8383
Promise.resolve(onchange({
8484
value: update.value,
8585
type: binding.type,
8686
prop: binding.prop,
8787
traces: binding.traces,
88-
index: ret.lookupTable[update.value]
88+
index: ret.bindingsByValue[update.value]
8989
})).then(ret.enable, ret.enable);
9090
}
9191
}
@@ -116,7 +116,7 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
116116
// is a start
117117
Lib.warn('Unable to automatically bind plot updates to API command');
118118

119-
ret.lookupTable = {};
119+
ret.bindingsByValue = {};
120120
ret.remove = function() {};
121121
}
122122

0 commit comments

Comments
 (0)