corrade-http-templates – Blame information for rev 62

Subversion Repositories:
Rev:
Rev Author Line No. Line
62 office 1 /*!
2 * jQuery UI Slider 1.12.1
3 * http://jqueryui.com
4 *
5 * Copyright jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
8 */
9  
10 //>>label: Slider
11 //>>group: Widgets
12 //>>description: Displays a flexible slider with ranges and accessibility via keyboard.
13 //>>docs: http://api.jqueryui.com/slider/
14 //>>demos: http://jqueryui.com/slider/
15 //>>css.structure: ../../themes/base/core.css
16 //>>css.structure: ../../themes/base/slider.css
17 //>>css.theme: ../../themes/base/theme.css
18  
19 ( function( factory ) {
20 if ( typeof define === "function" && define.amd ) {
21  
22 // AMD. Register as an anonymous module.
23 define( [
24 "jquery",
25 "./mouse",
26 "../keycode",
27 "../version",
28 "../widget"
29 ], factory );
30 } else {
31  
32 // Browser globals
33 factory( jQuery );
34 }
35 }( function( $ ) {
36  
37 return $.widget( "ui.slider", $.ui.mouse, {
38 version: "1.12.1",
39 widgetEventPrefix: "slide",
40  
41 options: {
42 animate: false,
43 classes: {
44 "ui-slider": "ui-corner-all",
45 "ui-slider-handle": "ui-corner-all",
46  
47 // Note: ui-widget-header isn't the most fittingly semantic framework class for this
48 // element, but worked best visually with a variety of themes
49 "ui-slider-range": "ui-corner-all ui-widget-header"
50 },
51 distance: 0,
52 max: 100,
53 min: 0,
54 orientation: "horizontal",
55 range: false,
56 step: 1,
57 value: 0,
58 values: null,
59  
60 // Callbacks
61 change: null,
62 slide: null,
63 start: null,
64 stop: null
65 },
66  
67 // Number of pages in a slider
68 // (how many times can you page up/down to go through the whole range)
69 numPages: 5,
70  
71 _create: function() {
72 this._keySliding = false;
73 this._mouseSliding = false;
74 this._animateOff = true;
75 this._handleIndex = null;
76 this._detectOrientation();
77 this._mouseInit();
78 this._calculateNewMax();
79  
80 this._addClass( "ui-slider ui-slider-" + this.orientation,
81 "ui-widget ui-widget-content" );
82  
83 this._refresh();
84  
85 this._animateOff = false;
86 },
87  
88 _refresh: function() {
89 this._createRange();
90 this._createHandles();
91 this._setupEvents();
92 this._refreshValue();
93 },
94  
95 _createHandles: function() {
96 var i, handleCount,
97 options = this.options,
98 existingHandles = this.element.find( ".ui-slider-handle" ),
99 handle = "<span tabindex='0'></span>",
100 handles = [];
101  
102 handleCount = ( options.values && options.values.length ) || 1;
103  
104 if ( existingHandles.length > handleCount ) {
105 existingHandles.slice( handleCount ).remove();
106 existingHandles = existingHandles.slice( 0, handleCount );
107 }
108  
109 for ( i = existingHandles.length; i < handleCount; i++ ) {
110 handles.push( handle );
111 }
112  
113 this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
114  
115 this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
116  
117 this.handle = this.handles.eq( 0 );
118  
119 this.handles.each( function( i ) {
120 $( this )
121 .data( "ui-slider-handle-index", i )
122 .attr( "tabIndex", 0 );
123 } );
124 },
125  
126 _createRange: function() {
127 var options = this.options;
128  
129 if ( options.range ) {
130 if ( options.range === true ) {
131 if ( !options.values ) {
132 options.values = [ this._valueMin(), this._valueMin() ];
133 } else if ( options.values.length && options.values.length !== 2 ) {
134 options.values = [ options.values[ 0 ], options.values[ 0 ] ];
135 } else if ( $.isArray( options.values ) ) {
136 options.values = options.values.slice( 0 );
137 }
138 }
139  
140 if ( !this.range || !this.range.length ) {
141 this.range = $( "<div>" )
142 .appendTo( this.element );
143  
144 this._addClass( this.range, "ui-slider-range" );
145 } else {
146 this._removeClass( this.range, "ui-slider-range-min ui-slider-range-max" );
147  
148 // Handle range switching from true to min/max
149 this.range.css( {
150 "left": "",
151 "bottom": ""
152 } );
153 }
154 if ( options.range === "min" || options.range === "max" ) {
155 this._addClass( this.range, "ui-slider-range-" + options.range );
156 }
157 } else {
158 if ( this.range ) {
159 this.range.remove();
160 }
161 this.range = null;
162 }
163 },
164  
165 _setupEvents: function() {
166 this._off( this.handles );
167 this._on( this.handles, this._handleEvents );
168 this._hoverable( this.handles );
169 this._focusable( this.handles );
170 },
171  
172 _destroy: function() {
173 this.handles.remove();
174 if ( this.range ) {
175 this.range.remove();
176 }
177  
178 this._mouseDestroy();
179 },
180  
181 _mouseCapture: function( event ) {
182 var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
183 that = this,
184 o = this.options;
185  
186 if ( o.disabled ) {
187 return false;
188 }
189  
190 this.elementSize = {
191 width: this.element.outerWidth(),
192 height: this.element.outerHeight()
193 };
194 this.elementOffset = this.element.offset();
195  
196 position = { x: event.pageX, y: event.pageY };
197 normValue = this._normValueFromMouse( position );
198 distance = this._valueMax() - this._valueMin() + 1;
199 this.handles.each( function( i ) {
200 var thisDistance = Math.abs( normValue - that.values( i ) );
201 if ( ( distance > thisDistance ) ||
202 ( distance === thisDistance &&
203 ( i === that._lastChangedValue || that.values( i ) === o.min ) ) ) {
204 distance = thisDistance;
205 closestHandle = $( this );
206 index = i;
207 }
208 } );
209  
210 allowed = this._start( event, index );
211 if ( allowed === false ) {
212 return false;
213 }
214 this._mouseSliding = true;
215  
216 this._handleIndex = index;
217  
218 this._addClass( closestHandle, null, "ui-state-active" );
219 closestHandle.trigger( "focus" );
220  
221 offset = closestHandle.offset();
222 mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
223 this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
224 left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
225 top: event.pageY - offset.top -
226 ( closestHandle.height() / 2 ) -
227 ( parseInt( closestHandle.css( "borderTopWidth" ), 10 ) || 0 ) -
228 ( parseInt( closestHandle.css( "borderBottomWidth" ), 10 ) || 0 ) +
229 ( parseInt( closestHandle.css( "marginTop" ), 10 ) || 0 )
230 };
231  
232 if ( !this.handles.hasClass( "ui-state-hover" ) ) {
233 this._slide( event, index, normValue );
234 }
235 this._animateOff = true;
236 return true;
237 },
238  
239 _mouseStart: function() {
240 return true;
241 },
242  
243 _mouseDrag: function( event ) {
244 var position = { x: event.pageX, y: event.pageY },
245 normValue = this._normValueFromMouse( position );
246  
247 this._slide( event, this._handleIndex, normValue );
248  
249 return false;
250 },
251  
252 _mouseStop: function( event ) {
253 this._removeClass( this.handles, null, "ui-state-active" );
254 this._mouseSliding = false;
255  
256 this._stop( event, this._handleIndex );
257 this._change( event, this._handleIndex );
258  
259 this._handleIndex = null;
260 this._clickOffset = null;
261 this._animateOff = false;
262  
263 return false;
264 },
265  
266 _detectOrientation: function() {
267 this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
268 },
269  
270 _normValueFromMouse: function( position ) {
271 var pixelTotal,
272 pixelMouse,
273 percentMouse,
274 valueTotal,
275 valueMouse;
276  
277 if ( this.orientation === "horizontal" ) {
278 pixelTotal = this.elementSize.width;
279 pixelMouse = position.x - this.elementOffset.left -
280 ( this._clickOffset ? this._clickOffset.left : 0 );
281 } else {
282 pixelTotal = this.elementSize.height;
283 pixelMouse = position.y - this.elementOffset.top -
284 ( this._clickOffset ? this._clickOffset.top : 0 );
285 }
286  
287 percentMouse = ( pixelMouse / pixelTotal );
288 if ( percentMouse > 1 ) {
289 percentMouse = 1;
290 }
291 if ( percentMouse < 0 ) {
292 < 0 ) { percentMouse = 0;
293 < 0 ) { }
294 < 0 ) { if ( this.orientation === "vertical" ) {
295 < 0 ) { percentMouse = 1 - percentMouse;
296 < 0 ) { }
297  
298 < 0 ) { valueTotal = this._valueMax() - this._valueMin();
299 < 0 ) { valueMouse = this._valueMin() + percentMouse * valueTotal;
300  
301 < 0 ) { return this._trimAlignValue( valueMouse );
302 < 0 ) { },
303  
304 < 0 ) { _uiHash: function( index, value, values ) {
305 < 0 ) { var uiHash = {
306 < 0 ) { handle: this.handles[ index ],
307 < 0 ) { handleIndex: index,
308 < 0 ) { value: value !== undefined ? value : this.value()
309 < 0 ) { };
310  
311 < 0 ) { if ( this._hasMultipleValues() ) {
312 < 0 ) { uiHash.value = value !== undefined ? value : this.values( index );
313 < 0 ) { uiHash.values = values || this.values();
314 < 0 ) { }
315  
316 < 0 ) { return uiHash;
317 < 0 ) { },
318  
319 < 0 ) { _hasMultipleValues: function() {
320 < 0 ) { return this.options.values && this.options.values.length;
321 < 0 ) { },
322  
323 < 0 ) { _start: function( event, index ) {
324 < 0 ) { return this._trigger( "start", event, this._uiHash( index ) );
325 < 0 ) { },
326  
327 < 0 ) { _slide: function( event, index, newVal ) {
328 < 0 ) { var allowed, otherVal,
329 < 0 ) { currentValue = this.value(),
330 < 0 ) { newValues = this.values();
331  
332 < 0 ) { if ( this._hasMultipleValues() ) {
333 < 0 ) { otherVal = this.values( index ? 0 : 1 );
334 < 0 ) { currentValue = this.values( index );
335  
336 < 0 ) { if ( this.options.values.length === 2 && this.options.range === true ) {
337 < 0 ) { newVal = index === 0 ? Math.min( otherVal, newVal ) : Math.max( otherVal, newVal );
338 < 0 ) { }
339  
340 < 0 ) { newValues[ index ] = newVal;
341 < 0 ) { }
342  
343 < 0 ) { if ( newVal === currentValue ) {
344 < 0 ) { return;
345 < 0 ) { }
346  
347 < 0 ) { allowed = this._trigger( "slide", event, this._uiHash( index, newVal, newValues ) );
348  
349 < 0 ) { // A slide can be canceled by returning false from the slide callback
350 < 0 ) { if ( allowed === false ) {
351 < 0 ) { return;
352 < 0 ) { }
353  
354 < 0 ) { if ( this._hasMultipleValues() ) {
355 < 0 ) { this.values( index, newVal );
356 < 0 ) { } else {
357 < 0 ) { this.value( newVal );
358 < 0 ) { }
359 < 0 ) { },
360  
361 < 0 ) { _stop: function( event, index ) {
362 < 0 ) { this._trigger( "stop", event, this._uiHash( index ) );
363 < 0 ) { },
364  
365 < 0 ) { _change: function( event, index ) {
366 < 0 ) { if ( !this._keySliding && !this._mouseSliding ) {
367  
368 < 0 ) { //store the last changed value index for reference when handles overlap
369 < 0 ) { this._lastChangedValue = index;
370 < 0 ) { this._trigger( "change", event, this._uiHash( index ) );
371 < 0 ) { }
372 < 0 ) { },
373  
374 < 0 ) { value: function( newValue ) {
375 < 0 ) { if ( arguments.length ) {
376 < 0 ) { this.options.value = this._trimAlignValue( newValue );
377 < 0 ) { this._refreshValue();
378 < 0 ) { this._change( null, 0 );
379 < 0 ) { return;
380 < 0 ) { }
381  
382 < 0 ) { return this._value();
383 < 0 ) { },
384  
385 < 0 ) { values: function( index, newValue ) {
386 < 0 ) { var vals,
387 < 0 ) { newValues,
388 < 0 ) { i;
389  
390 < 0 ) { if ( arguments.length > 1 ) {
391 < 0 ) { this.options.values[ index ] = this._trimAlignValue( newValue );
392 < 0 ) { this._refreshValue();
393 < 0 ) { this._change( null, index );
394 < 0 ) { return;
395 < 0 ) { }
396  
397 < 0 ) { if ( arguments.length ) {
398 < 0 ) { if ( $.isArray( arguments[ 0 ] ) ) {
399 < 0 ) { vals = this.options.values;
400 < 0 ) { newValues = arguments[ 0 ];
401 < 0 ) { for ( i = 0; i < vals.length; i += 1 ) {
402 < 0 ) {< vals.length; i += 1 ) { vals[ i ] = this._trimAlignValue( newValues[ i ] );
403 < 0 ) {< vals.length; i += 1 ) { this._change( null, i );
404 < 0 ) {< vals.length; i += 1 ) { }
405 < 0 ) {< vals.length; i += 1 ) { this._refreshValue();
406 < 0 ) {< vals.length; i += 1 ) { } else {
407 < 0 ) {< vals.length; i += 1 ) { if ( this._hasMultipleValues() ) {
408 < 0 ) {< vals.length; i += 1 ) { return this._values( index );
409 < 0 ) {< vals.length; i += 1 ) { } else {
410 < 0 ) {< vals.length; i += 1 ) { return this.value();
411 < 0 ) {< vals.length; i += 1 ) { }
412 < 0 ) {< vals.length; i += 1 ) { }
413 < 0 ) {< vals.length; i += 1 ) { } else {
414 < 0 ) {< vals.length; i += 1 ) { return this._values();
415 < 0 ) {< vals.length; i += 1 ) { }
416 < 0 ) {< vals.length; i += 1 ) { },
417  
418 < 0 ) {< vals.length; i += 1 ) { _setOption: function( key, value ) {
419 < 0 ) {< vals.length; i += 1 ) { var i,
420 < 0 ) {< vals.length; i += 1 ) { valsLength = 0;
421  
422 < 0 ) {< vals.length; i += 1 ) { if ( key === "range" && this.options.range === true ) {
423 < 0 ) {< vals.length; i += 1 ) { if ( value === "min" ) {
424 < 0 ) {< vals.length; i += 1 ) { this.options.value = this._values( 0 );
425 < 0 ) {< vals.length; i += 1 ) { this.options.values = null;
426 < 0 ) {< vals.length; i += 1 ) { } else if ( value === "max" ) {
427 < 0 ) {< vals.length; i += 1 ) { this.options.value = this._values( this.options.values.length - 1 );
428 < 0 ) {< vals.length; i += 1 ) { this.options.values = null;
429 < 0 ) {< vals.length; i += 1 ) { }
430 < 0 ) {< vals.length; i += 1 ) { }
431  
432 < 0 ) {< vals.length; i += 1 ) { if ( $.isArray( this.options.values ) ) {
433 < 0 ) {< vals.length; i += 1 ) { valsLength = this.options.values.length;
434 < 0 ) {< vals.length; i += 1 ) { }
435  
436 < 0 ) {< vals.length; i += 1 ) { this._super( key, value );
437  
438 < 0 ) {< vals.length; i += 1 ) { switch ( key ) {
439 < 0 ) {< vals.length; i += 1 ) { case "orientation":
440 < 0 ) {< vals.length; i += 1 ) { this._detectOrientation();
441 < 0 ) {< vals.length; i += 1 ) { this._removeClass( "ui-slider-horizontal ui-slider-vertical" )
442 < 0 ) {< vals.length; i += 1 ) { ._addClass( "ui-slider-" + this.orientation );
443 < 0 ) {< vals.length; i += 1 ) { this._refreshValue();
444 < 0 ) {< vals.length; i += 1 ) { if ( this.options.range ) {
445 < 0 ) {< vals.length; i += 1 ) { this._refreshRange( value );
446 < 0 ) {< vals.length; i += 1 ) { }
447  
448 < 0 ) {< vals.length; i += 1 ) { // Reset positioning from previous orientation
449 < 0 ) {< vals.length; i += 1 ) { this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
450 < 0 ) {< vals.length; i += 1 ) { break;
451 < 0 ) {< vals.length; i += 1 ) { case "value":
452 < 0 ) {< vals.length; i += 1 ) { this._animateOff = true;
453 < 0 ) {< vals.length; i += 1 ) { this._refreshValue();
454 < 0 ) {< vals.length; i += 1 ) { this._change( null, 0 );
455 < 0 ) {< vals.length; i += 1 ) { this._animateOff = false;
456 < 0 ) {< vals.length; i += 1 ) { break;
457 < 0 ) {< vals.length; i += 1 ) { case "values":
458 < 0 ) {< vals.length; i += 1 ) { this._animateOff = true;
459 < 0 ) {< vals.length; i += 1 ) { this._refreshValue();
460  
461 < 0 ) {< vals.length; i += 1 ) { // Start from the last handle to prevent unreachable handles (#9046)
462 < 0 ) {< vals.length; i += 1 ) { for ( i = valsLength - 1; i >= 0; i-- ) {
463 < 0 ) {< vals.length; i += 1 ) { this._change( null, i );
464 < 0 ) {< vals.length; i += 1 ) { }
465 < 0 ) {< vals.length; i += 1 ) { this._animateOff = false;
466 < 0 ) {< vals.length; i += 1 ) { break;
467 < 0 ) {< vals.length; i += 1 ) { case "step":
468 < 0 ) {< vals.length; i += 1 ) { case "min":
469 < 0 ) {< vals.length; i += 1 ) { case "max":
470 < 0 ) {< vals.length; i += 1 ) { this._animateOff = true;
471 < 0 ) {< vals.length; i += 1 ) { this._calculateNewMax();
472 < 0 ) {< vals.length; i += 1 ) { this._refreshValue();
473 < 0 ) {< vals.length; i += 1 ) { this._animateOff = false;
474 < 0 ) {< vals.length; i += 1 ) { break;
475 < 0 ) {< vals.length; i += 1 ) { case "range":
476 < 0 ) {< vals.length; i += 1 ) { this._animateOff = true;
477 < 0 ) {< vals.length; i += 1 ) { this._refresh();
478 < 0 ) {< vals.length; i += 1 ) { this._animateOff = false;
479 < 0 ) {< vals.length; i += 1 ) { break;
480 < 0 ) {< vals.length; i += 1 ) { }
481 < 0 ) {< vals.length; i += 1 ) { },
482  
483 < 0 ) {< vals.length; i += 1 ) { _setOptionDisabled: function( value ) {
484 < 0 ) {< vals.length; i += 1 ) { this._super( value );
485  
486 < 0 ) {< vals.length; i += 1 ) { this._toggleClass( null, "ui-state-disabled", !!value );
487 < 0 ) {< vals.length; i += 1 ) { },
488  
489 < 0 ) {< vals.length; i += 1 ) { //internal value getter
490 < 0 ) {< vals.length; i += 1 ) { // _value() returns value trimmed by min and max, aligned by step
491 < 0 ) {< vals.length; i += 1 ) { _value: function() {
492 < 0 ) {< vals.length; i += 1 ) { var val = this.options.value;
493 < 0 ) {< vals.length; i += 1 ) { val = this._trimAlignValue( val );
494  
495 < 0 ) {< vals.length; i += 1 ) { return val;
496 < 0 ) {< vals.length; i += 1 ) { },
497  
498 < 0 ) {< vals.length; i += 1 ) { //internal values getter
499 < 0 ) {< vals.length; i += 1 ) { // _values() returns array of values trimmed by min and max, aligned by step
500 < 0 ) {< vals.length; i += 1 ) { // _values( index ) returns single value trimmed by min and max, aligned by step
501 < 0 ) {< vals.length; i += 1 ) { _values: function( index ) {
502 < 0 ) {< vals.length; i += 1 ) { var val,
503 < 0 ) {< vals.length; i += 1 ) { vals,
504 < 0 ) {< vals.length; i += 1 ) { i;
505  
506 < 0 ) {< vals.length; i += 1 ) { if ( arguments.length ) {
507 < 0 ) {< vals.length; i += 1 ) { val = this.options.values[ index ];
508 < 0 ) {< vals.length; i += 1 ) { val = this._trimAlignValue( val );
509  
510 < 0 ) {< vals.length; i += 1 ) { return val;
511 < 0 ) {< vals.length; i += 1 ) { } else if ( this._hasMultipleValues() ) {
512  
513 < 0 ) {< vals.length; i += 1 ) { // .slice() creates a copy of the array
514 < 0 ) {< vals.length; i += 1 ) { // this copy gets trimmed by min and max and then returned
515 < 0 ) {< vals.length; i += 1 ) { vals = this.options.values.slice();
516 < 0 ) {< vals.length; i += 1 ) { for ( i = 0; i < vals.length; i += 1 ) {
517 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { vals[ i ] = this._trimAlignValue( vals[ i ] );
518 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { }
519  
520 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { return vals;
521 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { } else {
522 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { return [];
523 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { }
524 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { },
525  
526 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { // Returns the step-aligned value that val is closest to, between (inclusive) min and max
527 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { _trimAlignValue: function( val ) {
528 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) { if ( val <= this._valueMin() ) {
529 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return this._valueMin();
530 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
531 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( val >= this._valueMax() ) {
532 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return this._valueMax();
533 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
534 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var step = ( this.options.step > 0 ) ? this.options.step : 1,
535 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { valModStep = ( val - this._valueMin() ) % step,
536 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { alignValue = val - valModStep;
537  
538 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( Math.abs( valModStep ) * 2 >= step ) {
539 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { alignValue += ( valModStep > 0 ) ? step : ( -step );
540 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
541  
542 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { // Since JavaScript has problems with large floats, round
543 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { // the final value to 5 digits after the decimal point (see #4124)
544 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return parseFloat( alignValue.toFixed( 5 ) );
545 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
546  
547 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _calculateNewMax: function() {
548 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var max = this.options.max,
549 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { min = this._valueMin(),
550 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { step = this.options.step,
551 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { aboveMin = Math.round( ( max - min ) / step ) * step;
552 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { max = aboveMin + min;
553 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( max > this.options.max ) {
554  
555 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { //If max is not divisible by step, rounding off may increase its value
556 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { max -= step;
557 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
558 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.max = parseFloat( max.toFixed( this._precision() ) );
559 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
560  
561 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _precision: function() {
562 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var precision = this._precisionOf( this.options.step );
563 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( this.options.min !== null ) {
564 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { precision = Math.max( precision, this._precisionOf( this.options.min ) );
565 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
566 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return precision;
567 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
568  
569 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _precisionOf: function( num ) {
570 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var str = num.toString(),
571 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { decimal = str.indexOf( "." );
572 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return decimal === -1 ? 0 : str.length - decimal - 1;
573 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
574  
575 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _valueMin: function() {
576 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return this.options.min;
577 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
578  
579 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _valueMax: function() {
580 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return this.max;
581 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
582  
583 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _refreshRange: function( orientation ) {
584 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( orientation === "vertical" ) {
585 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.css( { "width": "", "left": "" } );
586 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
587 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( orientation === "horizontal" ) {
588 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.css( { "height": "", "bottom": "" } );
589 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
590 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
591  
592 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _refreshValue: function() {
593 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var lastValPercent, valPercent, value, valueMin, valueMax,
594 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { oRange = this.options.range,
595 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { o = this.options,
596 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that = this,
597 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { animate = ( !this._animateOff ) ? o.animate : false,
598 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _set = {};
599  
600 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( this._hasMultipleValues() ) {
601 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.handles.each( function( i ) {
602 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { valPercent = ( that.values( i ) - that._valueMin() ) / ( that._valueMax() -
603 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that._valueMin() ) * 100;
604 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
605 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
606 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( that.options.range === true ) {
607 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( that.orientation === "horizontal" ) {
608 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( i === 0 ) {
609 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
610 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { left: valPercent + "%"
611 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
612 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
613 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( i === 1 ) {
614 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that.range[ animate ? "animate" : "css" ]( {
615 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { width: ( valPercent - lastValPercent ) + "%"
616 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, {
617 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { queue: false,
618 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { duration: o.animate
619 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } );
620 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
621 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } else {
622 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( i === 0 ) {
623 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
624 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { bottom: ( valPercent ) + "%"
625 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
626 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
627 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( i === 1 ) {
628 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { that.range[ animate ? "animate" : "css" ]( {
629 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { height: ( valPercent - lastValPercent ) + "%"
630 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, {
631 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { queue: false,
632 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { duration: o.animate
633 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } );
634 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
635 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
636 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
637 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { lastValPercent = valPercent;
638 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } );
639 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } else {
640 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { value = this.value();
641 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { valueMin = this._valueMin();
642 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { valueMax = this._valueMax();
643 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { valPercent = ( valueMax !== valueMin ) ?
644 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
645 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { 0;
646 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
647 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
648  
649 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( oRange === "min" && this.orientation === "horizontal" ) {
650 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
651 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { width: valPercent + "%"
652 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
653 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
654 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( oRange === "max" && this.orientation === "horizontal" ) {
655 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
656 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { width: ( 100 - valPercent ) + "%"
657 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
658 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
659 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( oRange === "min" && this.orientation === "vertical" ) {
660 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
661 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { height: valPercent + "%"
662 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
663 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
664 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( oRange === "max" && this.orientation === "vertical" ) {
665 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
666 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { height: ( 100 - valPercent ) + "%"
667 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }, o.animate );
668 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
669 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
670 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
671  
672 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { _handleEvents: {
673 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { keydown: function( event ) {
674 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var allowed, curVal, newVal, step,
675 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { index = $( event.target ).data( "ui-slider-handle-index" );
676  
677 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { switch ( event.keyCode ) {
678 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.HOME:
679 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.END:
680 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.PAGE_UP:
681 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.PAGE_DOWN:
682 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.UP:
683 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.RIGHT:
684 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.DOWN:
685 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.LEFT:
686 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { event.preventDefault();
687 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( !this._keySliding ) {
688 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._keySliding = true;
689 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._addClass( $( event.target ), null, "ui-state-active" );
690 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { allowed = this._start( event, index );
691 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( allowed === false ) {
692 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return;
693 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
694 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
695 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
696 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
697  
698 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { step = this.options.step;
699 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( this._hasMultipleValues() ) {
700 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { curVal = newVal = this.values( index );
701 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { } else {
702 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { curVal = newVal = this.value();
703 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
704  
705 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { switch ( event.keyCode ) {
706 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.HOME:
707 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._valueMin();
708 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
709 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.END:
710 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._valueMax();
711 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
712 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.PAGE_UP:
713 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._trimAlignValue(
714 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
715 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { );
716 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
717 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.PAGE_DOWN:
718 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._trimAlignValue(
719 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { curVal - ( ( this._valueMax() - this._valueMin() ) / this.numPages ) );
720 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
721 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.UP:
722 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.RIGHT:
723 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( curVal === this._valueMax() ) {
724 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return;
725 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
726 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._trimAlignValue( curVal + step );
727 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
728 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.DOWN:
729 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { case $.ui.keyCode.LEFT:
730 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( curVal === this._valueMin() ) {
731 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { return;
732 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
733 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { newVal = this._trimAlignValue( curVal - step );
734 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { break;
735 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
736  
737 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._slide( event, index, newVal );
738 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { },
739 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { keyup: function( event ) {
740 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { var index = $( event.target ).data( "ui-slider-handle-index" );
741  
742 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { if ( this._keySliding ) {
743 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._keySliding = false;
744 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._stop( event, index );
745 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._change( event, index );
746 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { this._removeClass( $( event.target ), null, "ui-state-active" );
747 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
748 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
749 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) { }
750 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) {} );
751  
752 < 0 ) {< vals.length; i += 1 ) {< vals.length; i += 1 ) {<= this._valueMin() ) {} ) );