Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery/ui
File: spinner.js
/*!
[0] Fix | Delete
* jQuery UI Spinner 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: Spinner
[9] Fix | Delete
//>>group: Widgets
[10] Fix | Delete
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
[11] Fix | Delete
//>>docs: http://api.jqueryui.com/spinner/
[12] Fix | Delete
//>>demos: http://jqueryui.com/spinner/
[13] Fix | Delete
//>>css.structure: ../../themes/base/core.css
[14] Fix | Delete
//>>css.structure: ../../themes/base/spinner.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
"./button",
[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
function spinnerModifer( fn ) {
[34] Fix | Delete
return function() {
[35] Fix | Delete
var previous = this.element.val();
[36] Fix | Delete
fn.apply( this, arguments );
[37] Fix | Delete
this._refresh();
[38] Fix | Delete
if ( previous !== this.element.val() ) {
[39] Fix | Delete
this._trigger( "change" );
[40] Fix | Delete
}
[41] Fix | Delete
};
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
$.widget( "ui.spinner", {
[45] Fix | Delete
version: "1.12.1",
[46] Fix | Delete
defaultElement: "<input>",
[47] Fix | Delete
widgetEventPrefix: "spin",
[48] Fix | Delete
options: {
[49] Fix | Delete
classes: {
[50] Fix | Delete
"ui-spinner": "ui-corner-all",
[51] Fix | Delete
"ui-spinner-down": "ui-corner-br",
[52] Fix | Delete
"ui-spinner-up": "ui-corner-tr"
[53] Fix | Delete
},
[54] Fix | Delete
culture: null,
[55] Fix | Delete
icons: {
[56] Fix | Delete
down: "ui-icon-triangle-1-s",
[57] Fix | Delete
up: "ui-icon-triangle-1-n"
[58] Fix | Delete
},
[59] Fix | Delete
incremental: true,
[60] Fix | Delete
max: null,
[61] Fix | Delete
min: null,
[62] Fix | Delete
numberFormat: null,
[63] Fix | Delete
page: 10,
[64] Fix | Delete
step: 1,
[65] Fix | Delete
[66] Fix | Delete
change: null,
[67] Fix | Delete
spin: null,
[68] Fix | Delete
start: null,
[69] Fix | Delete
stop: null
[70] Fix | Delete
},
[71] Fix | Delete
[72] Fix | Delete
_create: function() {
[73] Fix | Delete
[74] Fix | Delete
// handle string values that need to be parsed
[75] Fix | Delete
this._setOption( "max", this.options.max );
[76] Fix | Delete
this._setOption( "min", this.options.min );
[77] Fix | Delete
this._setOption( "step", this.options.step );
[78] Fix | Delete
[79] Fix | Delete
// Only format if there is a value, prevents the field from being marked
[80] Fix | Delete
// as invalid in Firefox, see #9573.
[81] Fix | Delete
if ( this.value() !== "" ) {
[82] Fix | Delete
[83] Fix | Delete
// Format the value, but don't constrain.
[84] Fix | Delete
this._value( this.element.val(), true );
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
this._draw();
[88] Fix | Delete
this._on( this._events );
[89] Fix | Delete
this._refresh();
[90] Fix | Delete
[91] Fix | Delete
// Turning off autocomplete prevents the browser from remembering the
[92] Fix | Delete
// value when navigating through history, so we re-enable autocomplete
[93] Fix | Delete
// if the page is unloaded before the widget is destroyed. #7790
[94] Fix | Delete
this._on( this.window, {
[95] Fix | Delete
beforeunload: function() {
[96] Fix | Delete
this.element.removeAttr( "autocomplete" );
[97] Fix | Delete
}
[98] Fix | Delete
} );
[99] Fix | Delete
},
[100] Fix | Delete
[101] Fix | Delete
_getCreateOptions: function() {
[102] Fix | Delete
var options = this._super();
[103] Fix | Delete
var element = this.element;
[104] Fix | Delete
[105] Fix | Delete
$.each( [ "min", "max", "step" ], function( i, option ) {
[106] Fix | Delete
var value = element.attr( option );
[107] Fix | Delete
if ( value != null && value.length ) {
[108] Fix | Delete
options[ option ] = value;
[109] Fix | Delete
}
[110] Fix | Delete
} );
[111] Fix | Delete
[112] Fix | Delete
return options;
[113] Fix | Delete
},
[114] Fix | Delete
[115] Fix | Delete
_events: {
[116] Fix | Delete
keydown: function( event ) {
[117] Fix | Delete
if ( this._start( event ) && this._keydown( event ) ) {
[118] Fix | Delete
event.preventDefault();
[119] Fix | Delete
}
[120] Fix | Delete
},
[121] Fix | Delete
keyup: "_stop",
[122] Fix | Delete
focus: function() {
[123] Fix | Delete
this.previous = this.element.val();
[124] Fix | Delete
},
[125] Fix | Delete
blur: function( event ) {
[126] Fix | Delete
if ( this.cancelBlur ) {
[127] Fix | Delete
delete this.cancelBlur;
[128] Fix | Delete
return;
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
this._stop();
[132] Fix | Delete
this._refresh();
[133] Fix | Delete
if ( this.previous !== this.element.val() ) {
[134] Fix | Delete
this._trigger( "change", event );
[135] Fix | Delete
}
[136] Fix | Delete
},
[137] Fix | Delete
mousewheel: function( event, delta ) {
[138] Fix | Delete
if ( !delta ) {
[139] Fix | Delete
return;
[140] Fix | Delete
}
[141] Fix | Delete
if ( !this.spinning && !this._start( event ) ) {
[142] Fix | Delete
return false;
[143] Fix | Delete
}
[144] Fix | Delete
[145] Fix | Delete
this._spin( ( delta > 0 ? 1 : -1 ) * this.options.step, event );
[146] Fix | Delete
clearTimeout( this.mousewheelTimer );
[147] Fix | Delete
this.mousewheelTimer = this._delay( function() {
[148] Fix | Delete
if ( this.spinning ) {
[149] Fix | Delete
this._stop( event );
[150] Fix | Delete
}
[151] Fix | Delete
}, 100 );
[152] Fix | Delete
event.preventDefault();
[153] Fix | Delete
},
[154] Fix | Delete
"mousedown .ui-spinner-button": function( event ) {
[155] Fix | Delete
var previous;
[156] Fix | Delete
[157] Fix | Delete
// We never want the buttons to have focus; whenever the user is
[158] Fix | Delete
// interacting with the spinner, the focus should be on the input.
[159] Fix | Delete
// If the input is focused then this.previous is properly set from
[160] Fix | Delete
// when the input first received focus. If the input is not focused
[161] Fix | Delete
// then we need to set this.previous based on the value before spinning.
[162] Fix | Delete
previous = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ) ?
[163] Fix | Delete
this.previous : this.element.val();
[164] Fix | Delete
function checkFocus() {
[165] Fix | Delete
var isActive = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] );
[166] Fix | Delete
if ( !isActive ) {
[167] Fix | Delete
this.element.trigger( "focus" );
[168] Fix | Delete
this.previous = previous;
[169] Fix | Delete
[170] Fix | Delete
// support: IE
[171] Fix | Delete
// IE sets focus asynchronously, so we need to check if focus
[172] Fix | Delete
// moved off of the input because the user clicked on the button.
[173] Fix | Delete
this._delay( function() {
[174] Fix | Delete
this.previous = previous;
[175] Fix | Delete
} );
[176] Fix | Delete
}
[177] Fix | Delete
}
[178] Fix | Delete
[179] Fix | Delete
// Ensure focus is on (or stays on) the text field
[180] Fix | Delete
event.preventDefault();
[181] Fix | Delete
checkFocus.call( this );
[182] Fix | Delete
[183] Fix | Delete
// Support: IE
[184] Fix | Delete
// IE doesn't prevent moving focus even with event.preventDefault()
[185] Fix | Delete
// so we set a flag to know when we should ignore the blur event
[186] Fix | Delete
// and check (again) if focus moved off of the input.
[187] Fix | Delete
this.cancelBlur = true;
[188] Fix | Delete
this._delay( function() {
[189] Fix | Delete
delete this.cancelBlur;
[190] Fix | Delete
checkFocus.call( this );
[191] Fix | Delete
} );
[192] Fix | Delete
[193] Fix | Delete
if ( this._start( event ) === false ) {
[194] Fix | Delete
return;
[195] Fix | Delete
}
[196] Fix | Delete
[197] Fix | Delete
this._repeat( null, $( event.currentTarget )
[198] Fix | Delete
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
[199] Fix | Delete
},
[200] Fix | Delete
"mouseup .ui-spinner-button": "_stop",
[201] Fix | Delete
"mouseenter .ui-spinner-button": function( event ) {
[202] Fix | Delete
[203] Fix | Delete
// button will add ui-state-active if mouse was down while mouseleave and kept down
[204] Fix | Delete
if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {
[205] Fix | Delete
return;
[206] Fix | Delete
}
[207] Fix | Delete
[208] Fix | Delete
if ( this._start( event ) === false ) {
[209] Fix | Delete
return false;
[210] Fix | Delete
}
[211] Fix | Delete
this._repeat( null, $( event.currentTarget )
[212] Fix | Delete
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
[213] Fix | Delete
},
[214] Fix | Delete
[215] Fix | Delete
// TODO: do we really want to consider this a stop?
[216] Fix | Delete
// shouldn't we just stop the repeater and wait until mouseup before
[217] Fix | Delete
// we trigger the stop event?
[218] Fix | Delete
"mouseleave .ui-spinner-button": "_stop"
[219] Fix | Delete
},
[220] Fix | Delete
[221] Fix | Delete
// Support mobile enhanced option and make backcompat more sane
[222] Fix | Delete
_enhance: function() {
[223] Fix | Delete
this.uiSpinner = this.element
[224] Fix | Delete
.attr( "autocomplete", "off" )
[225] Fix | Delete
.wrap( "<span>" )
[226] Fix | Delete
.parent()
[227] Fix | Delete
[228] Fix | Delete
// Add buttons
[229] Fix | Delete
.append(
[230] Fix | Delete
"<a></a><a></a>"
[231] Fix | Delete
);
[232] Fix | Delete
},
[233] Fix | Delete
[234] Fix | Delete
_draw: function() {
[235] Fix | Delete
this._enhance();
[236] Fix | Delete
[237] Fix | Delete
this._addClass( this.uiSpinner, "ui-spinner", "ui-widget ui-widget-content" );
[238] Fix | Delete
this._addClass( "ui-spinner-input" );
[239] Fix | Delete
[240] Fix | Delete
this.element.attr( "role", "spinbutton" );
[241] Fix | Delete
[242] Fix | Delete
// Button bindings
[243] Fix | Delete
this.buttons = this.uiSpinner.children( "a" )
[244] Fix | Delete
.attr( "tabIndex", -1 )
[245] Fix | Delete
.attr( "aria-hidden", true )
[246] Fix | Delete
.button( {
[247] Fix | Delete
classes: {
[248] Fix | Delete
"ui-button": ""
[249] Fix | Delete
}
[250] Fix | Delete
} );
[251] Fix | Delete
[252] Fix | Delete
// TODO: Right now button does not support classes this is already updated in button PR
[253] Fix | Delete
this._removeClass( this.buttons, "ui-corner-all" );
[254] Fix | Delete
[255] Fix | Delete
this._addClass( this.buttons.first(), "ui-spinner-button ui-spinner-up" );
[256] Fix | Delete
this._addClass( this.buttons.last(), "ui-spinner-button ui-spinner-down" );
[257] Fix | Delete
this.buttons.first().button( {
[258] Fix | Delete
"icon": this.options.icons.up,
[259] Fix | Delete
"showLabel": false
[260] Fix | Delete
} );
[261] Fix | Delete
this.buttons.last().button( {
[262] Fix | Delete
"icon": this.options.icons.down,
[263] Fix | Delete
"showLabel": false
[264] Fix | Delete
} );
[265] Fix | Delete
[266] Fix | Delete
// IE 6 doesn't understand height: 50% for the buttons
[267] Fix | Delete
// unless the wrapper has an explicit height
[268] Fix | Delete
if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) &&
[269] Fix | Delete
this.uiSpinner.height() > 0 ) {
[270] Fix | Delete
this.uiSpinner.height( this.uiSpinner.height() );
[271] Fix | Delete
}
[272] Fix | Delete
},
[273] Fix | Delete
[274] Fix | Delete
_keydown: function( event ) {
[275] Fix | Delete
var options = this.options,
[276] Fix | Delete
keyCode = $.ui.keyCode;
[277] Fix | Delete
[278] Fix | Delete
switch ( event.keyCode ) {
[279] Fix | Delete
case keyCode.UP:
[280] Fix | Delete
this._repeat( null, 1, event );
[281] Fix | Delete
return true;
[282] Fix | Delete
case keyCode.DOWN:
[283] Fix | Delete
this._repeat( null, -1, event );
[284] Fix | Delete
return true;
[285] Fix | Delete
case keyCode.PAGE_UP:
[286] Fix | Delete
this._repeat( null, options.page, event );
[287] Fix | Delete
return true;
[288] Fix | Delete
case keyCode.PAGE_DOWN:
[289] Fix | Delete
this._repeat( null, -options.page, event );
[290] Fix | Delete
return true;
[291] Fix | Delete
}
[292] Fix | Delete
[293] Fix | Delete
return false;
[294] Fix | Delete
},
[295] Fix | Delete
[296] Fix | Delete
_start: function( event ) {
[297] Fix | Delete
if ( !this.spinning && this._trigger( "start", event ) === false ) {
[298] Fix | Delete
return false;
[299] Fix | Delete
}
[300] Fix | Delete
[301] Fix | Delete
if ( !this.counter ) {
[302] Fix | Delete
this.counter = 1;
[303] Fix | Delete
}
[304] Fix | Delete
this.spinning = true;
[305] Fix | Delete
return true;
[306] Fix | Delete
},
[307] Fix | Delete
[308] Fix | Delete
_repeat: function( i, steps, event ) {
[309] Fix | Delete
i = i || 500;
[310] Fix | Delete
[311] Fix | Delete
clearTimeout( this.timer );
[312] Fix | Delete
this.timer = this._delay( function() {
[313] Fix | Delete
this._repeat( 40, steps, event );
[314] Fix | Delete
}, i );
[315] Fix | Delete
[316] Fix | Delete
this._spin( steps * this.options.step, event );
[317] Fix | Delete
},
[318] Fix | Delete
[319] Fix | Delete
_spin: function( step, event ) {
[320] Fix | Delete
var value = this.value() || 0;
[321] Fix | Delete
[322] Fix | Delete
if ( !this.counter ) {
[323] Fix | Delete
this.counter = 1;
[324] Fix | Delete
}
[325] Fix | Delete
[326] Fix | Delete
value = this._adjustValue( value + step * this._increment( this.counter ) );
[327] Fix | Delete
[328] Fix | Delete
if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false ) {
[329] Fix | Delete
this._value( value );
[330] Fix | Delete
this.counter++;
[331] Fix | Delete
}
[332] Fix | Delete
},
[333] Fix | Delete
[334] Fix | Delete
_increment: function( i ) {
[335] Fix | Delete
var incremental = this.options.incremental;
[336] Fix | Delete
[337] Fix | Delete
if ( incremental ) {
[338] Fix | Delete
return $.isFunction( incremental ) ?
[339] Fix | Delete
incremental( i ) :
[340] Fix | Delete
Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
[341] Fix | Delete
}
[342] Fix | Delete
[343] Fix | Delete
return 1;
[344] Fix | Delete
},
[345] Fix | Delete
[346] Fix | Delete
_precision: function() {
[347] Fix | Delete
var precision = this._precisionOf( this.options.step );
[348] Fix | Delete
if ( this.options.min !== null ) {
[349] Fix | Delete
precision = Math.max( precision, this._precisionOf( this.options.min ) );
[350] Fix | Delete
}
[351] Fix | Delete
return precision;
[352] Fix | Delete
},
[353] Fix | Delete
[354] Fix | Delete
_precisionOf: function( num ) {
[355] Fix | Delete
var str = num.toString(),
[356] Fix | Delete
decimal = str.indexOf( "." );
[357] Fix | Delete
return decimal === -1 ? 0 : str.length - decimal - 1;
[358] Fix | Delete
},
[359] Fix | Delete
[360] Fix | Delete
_adjustValue: function( value ) {
[361] Fix | Delete
var base, aboveMin,
[362] Fix | Delete
options = this.options;
[363] Fix | Delete
[364] Fix | Delete
// Make sure we're at a valid step
[365] Fix | Delete
// - find out where we are relative to the base (min or 0)
[366] Fix | Delete
base = options.min !== null ? options.min : 0;
[367] Fix | Delete
aboveMin = value - base;
[368] Fix | Delete
[369] Fix | Delete
// - round to the nearest step
[370] Fix | Delete
aboveMin = Math.round( aboveMin / options.step ) * options.step;
[371] Fix | Delete
[372] Fix | Delete
// - rounding is based on 0, so adjust back to our base
[373] Fix | Delete
value = base + aboveMin;
[374] Fix | Delete
[375] Fix | Delete
// Fix precision from bad JS floating point math
[376] Fix | Delete
value = parseFloat( value.toFixed( this._precision() ) );
[377] Fix | Delete
[378] Fix | Delete
// Clamp the value
[379] Fix | Delete
if ( options.max !== null && value > options.max ) {
[380] Fix | Delete
return options.max;
[381] Fix | Delete
}
[382] Fix | Delete
if ( options.min !== null && value < options.min ) {
[383] Fix | Delete
return options.min;
[384] Fix | Delete
}
[385] Fix | Delete
[386] Fix | Delete
return value;
[387] Fix | Delete
},
[388] Fix | Delete
[389] Fix | Delete
_stop: function( event ) {
[390] Fix | Delete
if ( !this.spinning ) {
[391] Fix | Delete
return;
[392] Fix | Delete
}
[393] Fix | Delete
[394] Fix | Delete
clearTimeout( this.timer );
[395] Fix | Delete
clearTimeout( this.mousewheelTimer );
[396] Fix | Delete
this.counter = 0;
[397] Fix | Delete
this.spinning = false;
[398] Fix | Delete
this._trigger( "stop", event );
[399] Fix | Delete
},
[400] Fix | Delete
[401] Fix | Delete
_setOption: function( key, value ) {
[402] Fix | Delete
var prevValue, first, last;
[403] Fix | Delete
[404] Fix | Delete
if ( key === "culture" || key === "numberFormat" ) {
[405] Fix | Delete
prevValue = this._parse( this.element.val() );
[406] Fix | Delete
this.options[ key ] = value;
[407] Fix | Delete
this.element.val( this._format( prevValue ) );
[408] Fix | Delete
return;
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
if ( key === "max" || key === "min" || key === "step" ) {
[412] Fix | Delete
if ( typeof value === "string" ) {
[413] Fix | Delete
value = this._parse( value );
[414] Fix | Delete
}
[415] Fix | Delete
}
[416] Fix | Delete
if ( key === "icons" ) {
[417] Fix | Delete
first = this.buttons.first().find( ".ui-icon" );
[418] Fix | Delete
this._removeClass( first, null, this.options.icons.up );
[419] Fix | Delete
this._addClass( first, null, value.up );
[420] Fix | Delete
last = this.buttons.last().find( ".ui-icon" );
[421] Fix | Delete
this._removeClass( last, null, this.options.icons.down );
[422] Fix | Delete
this._addClass( last, null, value.down );
[423] Fix | Delete
}
[424] Fix | Delete
[425] Fix | Delete
this._super( key, value );
[426] Fix | Delete
},
[427] Fix | Delete
[428] Fix | Delete
_setOptionDisabled: function( value ) {
[429] Fix | Delete
this._super( value );
[430] Fix | Delete
[431] Fix | Delete
this._toggleClass( this.uiSpinner, null, "ui-state-disabled", !!value );
[432] Fix | Delete
this.element.prop( "disabled", !!value );
[433] Fix | Delete
this.buttons.button( value ? "disable" : "enable" );
[434] Fix | Delete
},
[435] Fix | Delete
[436] Fix | Delete
_setOptions: spinnerModifer( function( options ) {
[437] Fix | Delete
this._super( options );
[438] Fix | Delete
} ),
[439] Fix | Delete
[440] Fix | Delete
_parse: function( val ) {
[441] Fix | Delete
if ( typeof val === "string" && val !== "" ) {
[442] Fix | Delete
val = window.Globalize && this.options.numberFormat ?
[443] Fix | Delete
Globalize.parseFloat( val, 10, this.options.culture ) : +val;
[444] Fix | Delete
}
[445] Fix | Delete
return val === "" || isNaN( val ) ? null : val;
[446] Fix | Delete
},
[447] Fix | Delete
[448] Fix | Delete
_format: function( value ) {
[449] Fix | Delete
if ( value === "" ) {
[450] Fix | Delete
return "";
[451] Fix | Delete
}
[452] Fix | Delete
return window.Globalize && this.options.numberFormat ?
[453] Fix | Delete
Globalize.format( value, this.options.numberFormat, this.options.culture ) :
[454] Fix | Delete
value;
[455] Fix | Delete
},
[456] Fix | Delete
[457] Fix | Delete
_refresh: function() {
[458] Fix | Delete
this.element.attr( {
[459] Fix | Delete
"aria-valuemin": this.options.min,
[460] Fix | Delete
"aria-valuemax": this.options.max,
[461] Fix | Delete
[462] Fix | Delete
// TODO: what should we do with values that can't be parsed?
[463] Fix | Delete
"aria-valuenow": this._parse( this.element.val() )
[464] Fix | Delete
} );
[465] Fix | Delete
},
[466] Fix | Delete
[467] Fix | Delete
isValid: function() {
[468] Fix | Delete
var value = this.value();
[469] Fix | Delete
[470] Fix | Delete
// Null is invalid
[471] Fix | Delete
if ( value === null ) {
[472] Fix | Delete
return false;
[473] Fix | Delete
}
[474] Fix | Delete
[475] Fix | Delete
// If value gets adjusted, it's invalid
[476] Fix | Delete
return value === this._adjustValue( value );
[477] Fix | Delete
},
[478] Fix | Delete
[479] Fix | Delete
// Update the value without triggering change
[480] Fix | Delete
_value: function( value, allowAny ) {
[481] Fix | Delete
var parsed;
[482] Fix | Delete
if ( value !== "" ) {
[483] Fix | Delete
parsed = this._parse( value );
[484] Fix | Delete
if ( parsed !== null ) {
[485] Fix | Delete
if ( !allowAny ) {
[486] Fix | Delete
parsed = this._adjustValue( parsed );
[487] Fix | Delete
}
[488] Fix | Delete
value = this._format( parsed );
[489] Fix | Delete
}
[490] Fix | Delete
}
[491] Fix | Delete
this.element.val( value );
[492] Fix | Delete
this._refresh();
[493] Fix | Delete
},
[494] Fix | Delete
[495] Fix | Delete
_destroy: function() {
[496] Fix | Delete
this.element
[497] Fix | Delete
.prop( "disabled", false )
[498] Fix | Delete
.removeAttr( "autocomplete role aria-valuemin aria-valuemax aria-valuenow" );
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function