Skip to content

Commit 43dc3d4

Browse files
committed
Change the method name
1 parent 93b8253 commit 43dc3d4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/sliders/draw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ module.exports = function draw(gd) {
5252
sliderGroups.exit().each(function(sliderOpts) {
5353
d3.select(this).remove();
5454

55-
sliderOpts._bindingObserver.remove();
56-
delete sliderOpts._bindingObserver;
55+
sliderOpts._commandObserver.remove();
56+
delete sliderOpts._commandObserver;
5757

5858
Plots.autoMargin(gd, constants.autoMarginIdRoot + sliderOpts._index);
5959
});
@@ -70,8 +70,8 @@ module.exports = function draw(gd) {
7070

7171
computeLabelSteps(sliderOpts);
7272

73-
if(!sliderOpts._bindingObserver) {
74-
sliderOpts._bindingObserver = Plots.createBindingObserver(gd, sliderOpts.steps, function(data) {
73+
if(!sliderOpts._commandObserver) {
74+
sliderOpts._commandObserver = Plots.createCommandObserver(gd, sliderOpts.steps, function(data) {
7575
setActive(gd, d3.select(this), sliderOpts, data.index, false, true);
7676
}.bind(this));
7777
}

src/plots/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ exports.hasSimpleBindings = function(gd, commandList, bindingsByValue) {
8787
return refBinding;
8888
};
8989

90-
exports.createBindingObserver = function(gd, commandList, onchange) {
90+
exports.createCommandObserver = function(gd, commandList, onchange) {
9191
var cache = {};
9292
var lookupTable = {};
9393
var check, remove;

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ plots.computeAPICommandBindings = commandModule.computeAPICommandBindings;
4444
plots.evaluateAPICommandBinding = commandModule.evaluateAPICommandBinding;
4545
plots.hasSimpleBindings = commandModule.hasSimpleBindings;
4646
plots.bindingValueHasChanged = commandModule.bindingValueHasChanged;
47-
plots.createBindingObserver = commandModule.createBindingObserver;
47+
plots.createCommandObserver = commandModule.createCommandObserver;
4848

4949
/**
5050
* Find subplot ids in data.

0 commit comments

Comments
 (0)