aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/slider.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/slider.js')
-rw-r--r--ui/widgets/slider.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/widgets/slider.js b/ui/widgets/slider.js
index 8b0f907f5..e5004573a 100644
--- a/ui/widgets/slider.js
+++ b/ui/widgets/slider.js
@@ -132,7 +132,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
options.values = [ this._valueMin(), this._valueMin() ];
} else if ( options.values.length && options.values.length !== 2 ) {
options.values = [ options.values[ 0 ], options.values[ 0 ] ];
- } else if ( $.isArray( options.values ) ) {
+ } else if ( Array.isArray( options.values ) ) {
options.values = options.values.slice( 0 );
}
}
@@ -395,7 +395,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
}
if ( arguments.length ) {
- if ( $.isArray( arguments[ 0 ] ) ) {
+ if ( Array.isArray( arguments[ 0 ] ) ) {
vals = this.options.values;
newValues = arguments[ 0 ];
for ( i = 0; i < vals.length; i += 1 ) {
@@ -429,7 +429,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
}
}
- if ( $.isArray( this.options.values ) ) {
+ if ( Array.isArray( this.options.values ) ) {
valsLength = this.options.values.length;
}