diff --git a/src/slider.js b/src/slider.js index ce49b3d..175f64c 100644 --- a/src/slider.js +++ b/src/slider.js @@ -515,8 +515,9 @@ function slider(orientation, scale) { function updateValue(newValue, notifyListener) { if ( - value[0] !== newValue[0] || - (value.length > 1 && value[1] !== newValue[1]) + value.some(function (d, i) { + return d !== newValue[i]; + }) ) { value = newValue;