@@ -41,9 +41,9 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
41
41
}
42
42
43
43
// Either create or just recompute this:
44
- ret . lookupTable = { } ;
44
+ ret . bindingsByValue = { } ;
45
45
46
- var binding = exports . hasSimpleAPICommandBindings ( gd , commandList , ret . lookupTable ) ;
46
+ var binding = exports . hasSimpleAPICommandBindings ( gd , commandList , ret . bindingsByValue ) ;
47
47
48
48
if ( container && container . _commandObserver ) {
49
49
if ( ! binding ) {
@@ -78,14 +78,14 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
78
78
if ( update . changed && onchange ) {
79
79
// Disable checks for the duration of this command in order to avoid
80
80
// infinite loops:
81
- if ( ret . lookupTable [ update . value ] !== undefined ) {
81
+ if ( ret . bindingsByValue [ update . value ] !== undefined ) {
82
82
ret . disable ( ) ;
83
83
Promise . resolve ( onchange ( {
84
84
value : update . value ,
85
85
type : binding . type ,
86
86
prop : binding . prop ,
87
87
traces : binding . traces ,
88
- index : ret . lookupTable [ update . value ]
88
+ index : ret . bindingsByValue [ update . value ]
89
89
} ) ) . then ( ret . enable , ret . enable ) ;
90
90
}
91
91
}
@@ -116,7 +116,7 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
116
116
// is a start
117
117
Lib . warn ( 'Unable to automatically bind plot updates to API command' ) ;
118
118
119
- ret . lookupTable = { } ;
119
+ ret . bindingsByValue = { } ;
120
120
ret . remove = function ( ) { } ;
121
121
}
122
122
0 commit comments