Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery/ui
File: slider.js
/*!
[0] Fix | Delete
* jQuery UI Slider 1.12.1
[1] Fix | Delete
* http://jqueryui.com
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright jQuery Foundation and other contributors
[4] Fix | Delete
* Released under the MIT license.
[5] Fix | Delete
* http://jquery.org/license
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
//>>label: Slider
[9] Fix | Delete
//>>group: Widgets
[10] Fix | Delete
//>>description: Displays a flexible slider with ranges and accessibility via keyboard.
[11] Fix | Delete
//>>docs: http://api.jqueryui.com/slider/
[12] Fix | Delete
//>>demos: http://jqueryui.com/slider/
[13] Fix | Delete
//>>css.structure: ../../themes/base/core.css
[14] Fix | Delete
//>>css.structure: ../../themes/base/slider.css
[15] Fix | Delete
//>>css.theme: ../../themes/base/theme.css
[16] Fix | Delete
[17] Fix | Delete
( function( factory ) {
[18] Fix | Delete
if ( typeof define === "function" && define.amd ) {
[19] Fix | Delete
[20] Fix | Delete
// AMD. Register as an anonymous module.
[21] Fix | Delete
define( [
[22] Fix | Delete
"jquery",
[23] Fix | Delete
"./mouse",
[24] Fix | Delete
"./core"
[25] Fix | Delete
], factory );
[26] Fix | Delete
} else {
[27] Fix | Delete
[28] Fix | Delete
// Browser globals
[29] Fix | Delete
factory( jQuery );
[30] Fix | Delete
}
[31] Fix | Delete
}( function( $ ) {
[32] Fix | Delete
[33] Fix | Delete
return $.widget( "ui.slider", $.ui.mouse, {
[34] Fix | Delete
version: "1.12.1",
[35] Fix | Delete
widgetEventPrefix: "slide",
[36] Fix | Delete
[37] Fix | Delete
options: {
[38] Fix | Delete
animate: false,
[39] Fix | Delete
classes: {
[40] Fix | Delete
"ui-slider": "ui-corner-all",
[41] Fix | Delete
"ui-slider-handle": "ui-corner-all",
[42] Fix | Delete
[43] Fix | Delete
// Note: ui-widget-header isn't the most fittingly semantic framework class for this
[44] Fix | Delete
// element, but worked best visually with a variety of themes
[45] Fix | Delete
"ui-slider-range": "ui-corner-all ui-widget-header"
[46] Fix | Delete
},
[47] Fix | Delete
distance: 0,
[48] Fix | Delete
max: 100,
[49] Fix | Delete
min: 0,
[50] Fix | Delete
orientation: "horizontal",
[51] Fix | Delete
range: false,
[52] Fix | Delete
step: 1,
[53] Fix | Delete
value: 0,
[54] Fix | Delete
values: null,
[55] Fix | Delete
[56] Fix | Delete
// Callbacks
[57] Fix | Delete
change: null,
[58] Fix | Delete
slide: null,
[59] Fix | Delete
start: null,
[60] Fix | Delete
stop: null
[61] Fix | Delete
},
[62] Fix | Delete
[63] Fix | Delete
// Number of pages in a slider
[64] Fix | Delete
// (how many times can you page up/down to go through the whole range)
[65] Fix | Delete
numPages: 5,
[66] Fix | Delete
[67] Fix | Delete
_create: function() {
[68] Fix | Delete
this._keySliding = false;
[69] Fix | Delete
this._mouseSliding = false;
[70] Fix | Delete
this._animateOff = true;
[71] Fix | Delete
this._handleIndex = null;
[72] Fix | Delete
this._detectOrientation();
[73] Fix | Delete
this._mouseInit();
[74] Fix | Delete
this._calculateNewMax();
[75] Fix | Delete
[76] Fix | Delete
this._addClass( "ui-slider ui-slider-" + this.orientation,
[77] Fix | Delete
"ui-widget ui-widget-content" );
[78] Fix | Delete
[79] Fix | Delete
this._refresh();
[80] Fix | Delete
[81] Fix | Delete
this._animateOff = false;
[82] Fix | Delete
},
[83] Fix | Delete
[84] Fix | Delete
_refresh: function() {
[85] Fix | Delete
this._createRange();
[86] Fix | Delete
this._createHandles();
[87] Fix | Delete
this._setupEvents();
[88] Fix | Delete
this._refreshValue();
[89] Fix | Delete
},
[90] Fix | Delete
[91] Fix | Delete
_createHandles: function() {
[92] Fix | Delete
var i, handleCount,
[93] Fix | Delete
options = this.options,
[94] Fix | Delete
existingHandles = this.element.find( ".ui-slider-handle" ),
[95] Fix | Delete
handle = "<span tabindex='0'></span>",
[96] Fix | Delete
handles = [];
[97] Fix | Delete
[98] Fix | Delete
handleCount = ( options.values && options.values.length ) || 1;
[99] Fix | Delete
[100] Fix | Delete
if ( existingHandles.length > handleCount ) {
[101] Fix | Delete
existingHandles.slice( handleCount ).remove();
[102] Fix | Delete
existingHandles = existingHandles.slice( 0, handleCount );
[103] Fix | Delete
}
[104] Fix | Delete
[105] Fix | Delete
for ( i = existingHandles.length; i < handleCount; i++ ) {
[106] Fix | Delete
handles.push( handle );
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
[110] Fix | Delete
[111] Fix | Delete
this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
[112] Fix | Delete
[113] Fix | Delete
this.handle = this.handles.eq( 0 );
[114] Fix | Delete
[115] Fix | Delete
this.handles.each( function( i ) {
[116] Fix | Delete
$( this )
[117] Fix | Delete
.data( "ui-slider-handle-index", i )
[118] Fix | Delete
.attr( "tabIndex", 0 );
[119] Fix | Delete
} );
[120] Fix | Delete
},
[121] Fix | Delete
[122] Fix | Delete
_createRange: function() {
[123] Fix | Delete
var options = this.options;
[124] Fix | Delete
[125] Fix | Delete
if ( options.range ) {
[126] Fix | Delete
if ( options.range === true ) {
[127] Fix | Delete
if ( !options.values ) {
[128] Fix | Delete
options.values = [ this._valueMin(), this._valueMin() ];
[129] Fix | Delete
} else if ( options.values.length && options.values.length !== 2 ) {
[130] Fix | Delete
options.values = [ options.values[ 0 ], options.values[ 0 ] ];
[131] Fix | Delete
} else if ( $.isArray( options.values ) ) {
[132] Fix | Delete
options.values = options.values.slice( 0 );
[133] Fix | Delete
}
[134] Fix | Delete
}
[135] Fix | Delete
[136] Fix | Delete
if ( !this.range || !this.range.length ) {
[137] Fix | Delete
this.range = $( "<div>" )
[138] Fix | Delete
.appendTo( this.element );
[139] Fix | Delete
[140] Fix | Delete
this._addClass( this.range, "ui-slider-range" );
[141] Fix | Delete
} else {
[142] Fix | Delete
this._removeClass( this.range, "ui-slider-range-min ui-slider-range-max" );
[143] Fix | Delete
[144] Fix | Delete
// Handle range switching from true to min/max
[145] Fix | Delete
this.range.css( {
[146] Fix | Delete
"left": "",
[147] Fix | Delete
"bottom": ""
[148] Fix | Delete
} );
[149] Fix | Delete
}
[150] Fix | Delete
if ( options.range === "min" || options.range === "max" ) {
[151] Fix | Delete
this._addClass( this.range, "ui-slider-range-" + options.range );
[152] Fix | Delete
}
[153] Fix | Delete
} else {
[154] Fix | Delete
if ( this.range ) {
[155] Fix | Delete
this.range.remove();
[156] Fix | Delete
}
[157] Fix | Delete
this.range = null;
[158] Fix | Delete
}
[159] Fix | Delete
},
[160] Fix | Delete
[161] Fix | Delete
_setupEvents: function() {
[162] Fix | Delete
this._off( this.handles );
[163] Fix | Delete
this._on( this.handles, this._handleEvents );
[164] Fix | Delete
this._hoverable( this.handles );
[165] Fix | Delete
this._focusable( this.handles );
[166] Fix | Delete
},
[167] Fix | Delete
[168] Fix | Delete
_destroy: function() {
[169] Fix | Delete
this.handles.remove();
[170] Fix | Delete
if ( this.range ) {
[171] Fix | Delete
this.range.remove();
[172] Fix | Delete
}
[173] Fix | Delete
[174] Fix | Delete
this._mouseDestroy();
[175] Fix | Delete
},
[176] Fix | Delete
[177] Fix | Delete
_mouseCapture: function( event ) {
[178] Fix | Delete
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
[179] Fix | Delete
that = this,
[180] Fix | Delete
o = this.options;
[181] Fix | Delete
[182] Fix | Delete
if ( o.disabled ) {
[183] Fix | Delete
return false;
[184] Fix | Delete
}
[185] Fix | Delete
[186] Fix | Delete
this.elementSize = {
[187] Fix | Delete
width: this.element.outerWidth(),
[188] Fix | Delete
height: this.element.outerHeight()
[189] Fix | Delete
};
[190] Fix | Delete
this.elementOffset = this.element.offset();
[191] Fix | Delete
[192] Fix | Delete
position = { x: event.pageX, y: event.pageY };
[193] Fix | Delete
normValue = this._normValueFromMouse( position );
[194] Fix | Delete
distance = this._valueMax() - this._valueMin() + 1;
[195] Fix | Delete
this.handles.each( function( i ) {
[196] Fix | Delete
var thisDistance = Math.abs( normValue - that.values( i ) );
[197] Fix | Delete
if ( ( distance > thisDistance ) ||
[198] Fix | Delete
( distance === thisDistance &&
[199] Fix | Delete
( i === that._lastChangedValue || that.values( i ) === o.min ) ) ) {
[200] Fix | Delete
distance = thisDistance;
[201] Fix | Delete
closestHandle = $( this );
[202] Fix | Delete
index = i;
[203] Fix | Delete
}
[204] Fix | Delete
} );
[205] Fix | Delete
[206] Fix | Delete
allowed = this._start( event, index );
[207] Fix | Delete
if ( allowed === false ) {
[208] Fix | Delete
return false;
[209] Fix | Delete
}
[210] Fix | Delete
this._mouseSliding = true;
[211] Fix | Delete
[212] Fix | Delete
this._handleIndex = index;
[213] Fix | Delete
[214] Fix | Delete
this._addClass( closestHandle, null, "ui-state-active" );
[215] Fix | Delete
closestHandle.trigger( "focus" );
[216] Fix | Delete
[217] Fix | Delete
offset = closestHandle.offset();
[218] Fix | Delete
mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
[219] Fix | Delete
this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
[220] Fix | Delete
left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
[221] Fix | Delete
top: event.pageY - offset.top -
[222] Fix | Delete
( closestHandle.height() / 2 ) -
[223] Fix | Delete
( parseInt( closestHandle.css( "borderTopWidth" ), 10 ) || 0 ) -
[224] Fix | Delete
( parseInt( closestHandle.css( "borderBottomWidth" ), 10 ) || 0 ) +
[225] Fix | Delete
( parseInt( closestHandle.css( "marginTop" ), 10 ) || 0 )
[226] Fix | Delete
};
[227] Fix | Delete
[228] Fix | Delete
if ( !this.handles.hasClass( "ui-state-hover" ) ) {
[229] Fix | Delete
this._slide( event, index, normValue );
[230] Fix | Delete
}
[231] Fix | Delete
this._animateOff = true;
[232] Fix | Delete
return true;
[233] Fix | Delete
},
[234] Fix | Delete
[235] Fix | Delete
_mouseStart: function() {
[236] Fix | Delete
return true;
[237] Fix | Delete
},
[238] Fix | Delete
[239] Fix | Delete
_mouseDrag: function( event ) {
[240] Fix | Delete
var position = { x: event.pageX, y: event.pageY },
[241] Fix | Delete
normValue = this._normValueFromMouse( position );
[242] Fix | Delete
[243] Fix | Delete
this._slide( event, this._handleIndex, normValue );
[244] Fix | Delete
[245] Fix | Delete
return false;
[246] Fix | Delete
},
[247] Fix | Delete
[248] Fix | Delete
_mouseStop: function( event ) {
[249] Fix | Delete
this._removeClass( this.handles, null, "ui-state-active" );
[250] Fix | Delete
this._mouseSliding = false;
[251] Fix | Delete
[252] Fix | Delete
this._stop( event, this._handleIndex );
[253] Fix | Delete
this._change( event, this._handleIndex );
[254] Fix | Delete
[255] Fix | Delete
this._handleIndex = null;
[256] Fix | Delete
this._clickOffset = null;
[257] Fix | Delete
this._animateOff = false;
[258] Fix | Delete
[259] Fix | Delete
return false;
[260] Fix | Delete
},
[261] Fix | Delete
[262] Fix | Delete
_detectOrientation: function() {
[263] Fix | Delete
this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
[264] Fix | Delete
},
[265] Fix | Delete
[266] Fix | Delete
_normValueFromMouse: function( position ) {
[267] Fix | Delete
var pixelTotal,
[268] Fix | Delete
pixelMouse,
[269] Fix | Delete
percentMouse,
[270] Fix | Delete
valueTotal,
[271] Fix | Delete
valueMouse;
[272] Fix | Delete
[273] Fix | Delete
if ( this.orientation === "horizontal" ) {
[274] Fix | Delete
pixelTotal = this.elementSize.width;
[275] Fix | Delete
pixelMouse = position.x - this.elementOffset.left -
[276] Fix | Delete
( this._clickOffset ? this._clickOffset.left : 0 );
[277] Fix | Delete
} else {
[278] Fix | Delete
pixelTotal = this.elementSize.height;
[279] Fix | Delete
pixelMouse = position.y - this.elementOffset.top -
[280] Fix | Delete
( this._clickOffset ? this._clickOffset.top : 0 );
[281] Fix | Delete
}
[282] Fix | Delete
[283] Fix | Delete
percentMouse = ( pixelMouse / pixelTotal );
[284] Fix | Delete
if ( percentMouse > 1 ) {
[285] Fix | Delete
percentMouse = 1;
[286] Fix | Delete
}
[287] Fix | Delete
if ( percentMouse < 0 ) {
[288] Fix | Delete
percentMouse = 0;
[289] Fix | Delete
}
[290] Fix | Delete
if ( this.orientation === "vertical" ) {
[291] Fix | Delete
percentMouse = 1 - percentMouse;
[292] Fix | Delete
}
[293] Fix | Delete
[294] Fix | Delete
valueTotal = this._valueMax() - this._valueMin();
[295] Fix | Delete
valueMouse = this._valueMin() + percentMouse * valueTotal;
[296] Fix | Delete
[297] Fix | Delete
return this._trimAlignValue( valueMouse );
[298] Fix | Delete
},
[299] Fix | Delete
[300] Fix | Delete
_uiHash: function( index, value, values ) {
[301] Fix | Delete
var uiHash = {
[302] Fix | Delete
handle: this.handles[ index ],
[303] Fix | Delete
handleIndex: index,
[304] Fix | Delete
value: value !== undefined ? value : this.value()
[305] Fix | Delete
};
[306] Fix | Delete
[307] Fix | Delete
if ( this._hasMultipleValues() ) {
[308] Fix | Delete
uiHash.value = value !== undefined ? value : this.values( index );
[309] Fix | Delete
uiHash.values = values || this.values();
[310] Fix | Delete
}
[311] Fix | Delete
[312] Fix | Delete
return uiHash;
[313] Fix | Delete
},
[314] Fix | Delete
[315] Fix | Delete
_hasMultipleValues: function() {
[316] Fix | Delete
return this.options.values && this.options.values.length;
[317] Fix | Delete
},
[318] Fix | Delete
[319] Fix | Delete
_start: function( event, index ) {
[320] Fix | Delete
return this._trigger( "start", event, this._uiHash( index ) );
[321] Fix | Delete
},
[322] Fix | Delete
[323] Fix | Delete
_slide: function( event, index, newVal ) {
[324] Fix | Delete
var allowed, otherVal,
[325] Fix | Delete
currentValue = this.value(),
[326] Fix | Delete
newValues = this.values();
[327] Fix | Delete
[328] Fix | Delete
if ( this._hasMultipleValues() ) {
[329] Fix | Delete
otherVal = this.values( index ? 0 : 1 );
[330] Fix | Delete
currentValue = this.values( index );
[331] Fix | Delete
[332] Fix | Delete
if ( this.options.values.length === 2 && this.options.range === true ) {
[333] Fix | Delete
newVal = index === 0 ? Math.min( otherVal, newVal ) : Math.max( otherVal, newVal );
[334] Fix | Delete
}
[335] Fix | Delete
[336] Fix | Delete
newValues[ index ] = newVal;
[337] Fix | Delete
}
[338] Fix | Delete
[339] Fix | Delete
if ( newVal === currentValue ) {
[340] Fix | Delete
return;
[341] Fix | Delete
}
[342] Fix | Delete
[343] Fix | Delete
allowed = this._trigger( "slide", event, this._uiHash( index, newVal, newValues ) );
[344] Fix | Delete
[345] Fix | Delete
// A slide can be canceled by returning false from the slide callback
[346] Fix | Delete
if ( allowed === false ) {
[347] Fix | Delete
return;
[348] Fix | Delete
}
[349] Fix | Delete
[350] Fix | Delete
if ( this._hasMultipleValues() ) {
[351] Fix | Delete
this.values( index, newVal );
[352] Fix | Delete
} else {
[353] Fix | Delete
this.value( newVal );
[354] Fix | Delete
}
[355] Fix | Delete
},
[356] Fix | Delete
[357] Fix | Delete
_stop: function( event, index ) {
[358] Fix | Delete
this._trigger( "stop", event, this._uiHash( index ) );
[359] Fix | Delete
},
[360] Fix | Delete
[361] Fix | Delete
_change: function( event, index ) {
[362] Fix | Delete
if ( !this._keySliding && !this._mouseSliding ) {
[363] Fix | Delete
[364] Fix | Delete
//store the last changed value index for reference when handles overlap
[365] Fix | Delete
this._lastChangedValue = index;
[366] Fix | Delete
this._trigger( "change", event, this._uiHash( index ) );
[367] Fix | Delete
}
[368] Fix | Delete
},
[369] Fix | Delete
[370] Fix | Delete
value: function( newValue ) {
[371] Fix | Delete
if ( arguments.length ) {
[372] Fix | Delete
this.options.value = this._trimAlignValue( newValue );
[373] Fix | Delete
this._refreshValue();
[374] Fix | Delete
this._change( null, 0 );
[375] Fix | Delete
return;
[376] Fix | Delete
}
[377] Fix | Delete
[378] Fix | Delete
return this._value();
[379] Fix | Delete
},
[380] Fix | Delete
[381] Fix | Delete
values: function( index, newValue ) {
[382] Fix | Delete
var vals,
[383] Fix | Delete
newValues,
[384] Fix | Delete
i;
[385] Fix | Delete
[386] Fix | Delete
if ( arguments.length > 1 ) {
[387] Fix | Delete
this.options.values[ index ] = this._trimAlignValue( newValue );
[388] Fix | Delete
this._refreshValue();
[389] Fix | Delete
this._change( null, index );
[390] Fix | Delete
return;
[391] Fix | Delete
}
[392] Fix | Delete
[393] Fix | Delete
if ( arguments.length ) {
[394] Fix | Delete
if ( $.isArray( arguments[ 0 ] ) ) {
[395] Fix | Delete
vals = this.options.values;
[396] Fix | Delete
newValues = arguments[ 0 ];
[397] Fix | Delete
for ( i = 0; i < vals.length; i += 1 ) {
[398] Fix | Delete
vals[ i ] = this._trimAlignValue( newValues[ i ] );
[399] Fix | Delete
this._change( null, i );
[400] Fix | Delete
}
[401] Fix | Delete
this._refreshValue();
[402] Fix | Delete
} else {
[403] Fix | Delete
if ( this._hasMultipleValues() ) {
[404] Fix | Delete
return this._values( index );
[405] Fix | Delete
} else {
[406] Fix | Delete
return this.value();
[407] Fix | Delete
}
[408] Fix | Delete
}
[409] Fix | Delete
} else {
[410] Fix | Delete
return this._values();
[411] Fix | Delete
}
[412] Fix | Delete
},
[413] Fix | Delete
[414] Fix | Delete
_setOption: function( key, value ) {
[415] Fix | Delete
var i,
[416] Fix | Delete
valsLength = 0;
[417] Fix | Delete
[418] Fix | Delete
if ( key === "range" && this.options.range === true ) {
[419] Fix | Delete
if ( value === "min" ) {
[420] Fix | Delete
this.options.value = this._values( 0 );
[421] Fix | Delete
this.options.values = null;
[422] Fix | Delete
} else if ( value === "max" ) {
[423] Fix | Delete
this.options.value = this._values( this.options.values.length - 1 );
[424] Fix | Delete
this.options.values = null;
[425] Fix | Delete
}
[426] Fix | Delete
}
[427] Fix | Delete
[428] Fix | Delete
if ( $.isArray( this.options.values ) ) {
[429] Fix | Delete
valsLength = this.options.values.length;
[430] Fix | Delete
}
[431] Fix | Delete
[432] Fix | Delete
this._super( key, value );
[433] Fix | Delete
[434] Fix | Delete
switch ( key ) {
[435] Fix | Delete
case "orientation":
[436] Fix | Delete
this._detectOrientation();
[437] Fix | Delete
this._removeClass( "ui-slider-horizontal ui-slider-vertical" )
[438] Fix | Delete
._addClass( "ui-slider-" + this.orientation );
[439] Fix | Delete
this._refreshValue();
[440] Fix | Delete
if ( this.options.range ) {
[441] Fix | Delete
this._refreshRange( value );
[442] Fix | Delete
}
[443] Fix | Delete
[444] Fix | Delete
// Reset positioning from previous orientation
[445] Fix | Delete
this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
[446] Fix | Delete
break;
[447] Fix | Delete
case "value":
[448] Fix | Delete
this._animateOff = true;
[449] Fix | Delete
this._refreshValue();
[450] Fix | Delete
this._change( null, 0 );
[451] Fix | Delete
this._animateOff = false;
[452] Fix | Delete
break;
[453] Fix | Delete
case "values":
[454] Fix | Delete
this._animateOff = true;
[455] Fix | Delete
this._refreshValue();
[456] Fix | Delete
[457] Fix | Delete
// Start from the last handle to prevent unreachable handles (#9046)
[458] Fix | Delete
for ( i = valsLength - 1; i >= 0; i-- ) {
[459] Fix | Delete
this._change( null, i );
[460] Fix | Delete
}
[461] Fix | Delete
this._animateOff = false;
[462] Fix | Delete
break;
[463] Fix | Delete
case "step":
[464] Fix | Delete
case "min":
[465] Fix | Delete
case "max":
[466] Fix | Delete
this._animateOff = true;
[467] Fix | Delete
this._calculateNewMax();
[468] Fix | Delete
this._refreshValue();
[469] Fix | Delete
this._animateOff = false;
[470] Fix | Delete
break;
[471] Fix | Delete
case "range":
[472] Fix | Delete
this._animateOff = true;
[473] Fix | Delete
this._refresh();
[474] Fix | Delete
this._animateOff = false;
[475] Fix | Delete
break;
[476] Fix | Delete
}
[477] Fix | Delete
},
[478] Fix | Delete
[479] Fix | Delete
_setOptionDisabled: function( value ) {
[480] Fix | Delete
this._super( value );
[481] Fix | Delete
[482] Fix | Delete
this._toggleClass( null, "ui-state-disabled", !!value );
[483] Fix | Delete
},
[484] Fix | Delete
[485] Fix | Delete
//internal value getter
[486] Fix | Delete
// _value() returns value trimmed by min and max, aligned by step
[487] Fix | Delete
_value: function() {
[488] Fix | Delete
var val = this.options.value;
[489] Fix | Delete
val = this._trimAlignValue( val );
[490] Fix | Delete
[491] Fix | Delete
return val;
[492] Fix | Delete
},
[493] Fix | Delete
[494] Fix | Delete
//internal values getter
[495] Fix | Delete
// _values() returns array of values trimmed by min and max, aligned by step
[496] Fix | Delete
// _values( index ) returns single value trimmed by min and max, aligned by step
[497] Fix | Delete
_values: function( index ) {
[498] Fix | Delete
var val,
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function