@@ -74,7 +74,7 @@ $.widget( "ui.slider", $.ui.mouse, {
74
74
. addClass ( "ui-slider-range" +
75
75
// note: this isn't the most fittingly semantic framework class for this element,
76
76
// but worked best visually with a variety of themes
77
- " ui-widget-header" +
77
+ " ui-widget-header" +
78
78
( ( o . range === "min" || o . range === "max" ) ? " ui-slider-range-" + o . range : "" ) ) ;
79
79
}
80
80
@@ -120,11 +120,11 @@ $.widget( "ui.slider", $.ui.mouse, {
120
120
curVal ,
121
121
newVal ,
122
122
step ;
123
-
123
+
124
124
if ( self . options . disabled ) {
125
125
return ;
126
126
}
127
-
127
+
128
128
switch ( event . keyCode ) {
129
129
case $ . ui . keyCode . HOME :
130
130
case $ . ui . keyCode . END :
@@ -145,14 +145,14 @@ $.widget( "ui.slider", $.ui.mouse, {
145
145
}
146
146
break ;
147
147
}
148
-
148
+
149
149
step = self . options . step ;
150
150
if ( self . options . values && self . options . values . length ) {
151
151
curVal = newVal = self . values ( index ) ;
152
152
} else {
153
153
curVal = newVal = self . value ( ) ;
154
154
}
155
-
155
+
156
156
switch ( event . keyCode ) {
157
157
case $ . ui . keyCode . HOME :
158
158
newVal = self . _valueMin ( ) ;
@@ -181,19 +181,19 @@ $.widget( "ui.slider", $.ui.mouse, {
181
181
newVal = self . _trimAlignValue ( curVal - step ) ;
182
182
break ;
183
183
}
184
-
184
+
185
185
self . _slide ( event , index , newVal ) ;
186
186
} )
187
187
. keyup ( function ( event ) {
188
188
var index = $ ( this ) . data ( "index.ui-slider-handle" ) ;
189
-
189
+
190
190
if ( self . _keySliding ) {
191
191
self . _keySliding = false ;
192
192
self . _stop ( event , index ) ;
193
193
self . _change ( event , index ) ;
194
194
$ ( this ) . removeClass ( "ui-state-active" ) ;
195
195
}
196
-
196
+
197
197
} ) ;
198
198
199
199
this . _refreshValue ( ) ;
@@ -275,7 +275,7 @@ $.widget( "ui.slider", $.ui.mouse, {
275
275
closestHandle
276
276
. addClass ( "ui-state-active" )
277
277
. focus ( ) ;
278
-
278
+
279
279
offset = closestHandle . offset ( ) ;
280
280
mouseOverHandle = ! $ ( event . target ) . parents ( ) . andSelf ( ) . is ( ".ui-slider-handle" ) ;
281
281
this . _clickOffset = mouseOverHandle ? { left : 0 , top : 0 } : {
@@ -301,7 +301,7 @@ $.widget( "ui.slider", $.ui.mouse, {
301
301
_mouseDrag : function ( event ) {
302
302
var position = { x : event . pageX , y : event . pageY } ,
303
303
normValue = this . _normValueFromMouse ( position ) ;
304
-
304
+
305
305
this . _slide ( event , this . _handleIndex , normValue ) ;
306
306
307
307
return false ;
@@ -320,7 +320,7 @@ $.widget( "ui.slider", $.ui.mouse, {
320
320
321
321
return false ;
322
322
} ,
323
-
323
+
324
324
_detectOrientation : function ( ) {
325
325
this . orientation = ( this . options . orientation === "vertical" ) ? "vertical" : "horizontal" ;
326
326
} ,
@@ -377,7 +377,7 @@ $.widget( "ui.slider", $.ui.mouse, {
377
377
if ( this . options . values && this . options . values . length ) {
378
378
otherVal = this . values ( index ? 0 : 1 ) ;
379
379
380
- if ( ( this . options . values . length === 2 && this . options . range === true ) &&
380
+ if ( ( this . options . values . length === 2 && this . options . range === true ) &&
381
381
( ( index === 0 && newVal > otherVal ) || ( index === 1 && newVal < otherVal ) )
382
382
) {
383
383
newVal = otherVal ;
@@ -562,7 +562,7 @@ $.widget( "ui.slider", $.ui.mouse, {
562
562
return vals ;
563
563
}
564
564
} ,
565
-
565
+
566
566
// returns the step-aligned value that val is closest to, between (inclusive) min and max
567
567
_trimAlignValue : function ( val ) {
568
568
if ( val <= this . _valueMin ( ) ) {
@@ -591,7 +591,7 @@ $.widget( "ui.slider", $.ui.mouse, {
591
591
_valueMax : function ( ) {
592
592
return this . options . max ;
593
593
} ,
594
-
594
+
595
595
_refreshValue : function ( ) {
596
596
var oRange = this . options . range ,
597
597
o = this . options ,
0 commit comments