Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: core.js
//>>group: Core
[1000] Fix | Delete
//>>description: Selects elements which can be tabbed to.
[1001] Fix | Delete
//>>docs: https://api.jqueryui.com/tabbable-selector/
[1002] Fix | Delete
[1003] Fix | Delete
$.extend( $.expr.pseudos, {
[1004] Fix | Delete
tabbable: function( element ) {
[1005] Fix | Delete
var tabIndex = $.attr( element, "tabindex" ),
[1006] Fix | Delete
hasTabindex = tabIndex != null;
[1007] Fix | Delete
return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
[1008] Fix | Delete
}
[1009] Fix | Delete
} );
[1010] Fix | Delete
[1011] Fix | Delete
// Source: unique-id.js
[1012] Fix | Delete
/*!
[1013] Fix | Delete
* jQuery UI Unique ID 1.13.3
[1014] Fix | Delete
* https://jqueryui.com
[1015] Fix | Delete
*
[1016] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[1017] Fix | Delete
* Released under the MIT license.
[1018] Fix | Delete
* https://jquery.org/license
[1019] Fix | Delete
*/
[1020] Fix | Delete
[1021] Fix | Delete
//>>label: uniqueId
[1022] Fix | Delete
//>>group: Core
[1023] Fix | Delete
//>>description: Functions to generate and remove uniqueId's
[1024] Fix | Delete
//>>docs: https://api.jqueryui.com/uniqueId/
[1025] Fix | Delete
[1026] Fix | Delete
$.fn.extend( {
[1027] Fix | Delete
uniqueId: ( function() {
[1028] Fix | Delete
var uuid = 0;
[1029] Fix | Delete
[1030] Fix | Delete
return function() {
[1031] Fix | Delete
return this.each( function() {
[1032] Fix | Delete
if ( !this.id ) {
[1033] Fix | Delete
this.id = "ui-id-" + ( ++uuid );
[1034] Fix | Delete
}
[1035] Fix | Delete
} );
[1036] Fix | Delete
};
[1037] Fix | Delete
} )(),
[1038] Fix | Delete
[1039] Fix | Delete
removeUniqueId: function() {
[1040] Fix | Delete
return this.each( function() {
[1041] Fix | Delete
if ( /^ui-id-\d+$/.test( this.id ) ) {
[1042] Fix | Delete
$( this ).removeAttr( "id" );
[1043] Fix | Delete
}
[1044] Fix | Delete
} );
[1045] Fix | Delete
}
[1046] Fix | Delete
} );
[1047] Fix | Delete
[1048] Fix | Delete
// Source: widget.js
[1049] Fix | Delete
/*!
[1050] Fix | Delete
* jQuery UI Widget 1.13.3
[1051] Fix | Delete
* https://jqueryui.com
[1052] Fix | Delete
*
[1053] Fix | Delete
* Copyright OpenJS Foundation and other contributors
[1054] Fix | Delete
* Released under the MIT license.
[1055] Fix | Delete
* https://jquery.org/license
[1056] Fix | Delete
*/
[1057] Fix | Delete
[1058] Fix | Delete
//>>label: Widget
[1059] Fix | Delete
//>>group: Core
[1060] Fix | Delete
//>>description: Provides a factory for creating stateful widgets with a common API.
[1061] Fix | Delete
//>>docs: https://api.jqueryui.com/jQuery.widget/
[1062] Fix | Delete
//>>demos: https://jqueryui.com/widget/
[1063] Fix | Delete
[1064] Fix | Delete
var widgetUuid = 0;
[1065] Fix | Delete
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
[1066] Fix | Delete
var widgetSlice = Array.prototype.slice;
[1067] Fix | Delete
[1068] Fix | Delete
$.cleanData = ( function( orig ) {
[1069] Fix | Delete
return function( elems ) {
[1070] Fix | Delete
var events, elem, i;
[1071] Fix | Delete
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
[1072] Fix | Delete
[1073] Fix | Delete
// Only trigger remove when necessary to save time
[1074] Fix | Delete
events = $._data( elem, "events" );
[1075] Fix | Delete
if ( events && events.remove ) {
[1076] Fix | Delete
$( elem ).triggerHandler( "remove" );
[1077] Fix | Delete
}
[1078] Fix | Delete
}
[1079] Fix | Delete
orig( elems );
[1080] Fix | Delete
};
[1081] Fix | Delete
} )( $.cleanData );
[1082] Fix | Delete
[1083] Fix | Delete
$.widget = function( name, base, prototype ) {
[1084] Fix | Delete
var existingConstructor, constructor, basePrototype;
[1085] Fix | Delete
[1086] Fix | Delete
// ProxiedPrototype allows the provided prototype to remain unmodified
[1087] Fix | Delete
// so that it can be used as a mixin for multiple widgets (#8876)
[1088] Fix | Delete
var proxiedPrototype = {};
[1089] Fix | Delete
[1090] Fix | Delete
var namespace = name.split( "." )[ 0 ];
[1091] Fix | Delete
name = name.split( "." )[ 1 ];
[1092] Fix | Delete
var fullName = namespace + "-" + name;
[1093] Fix | Delete
[1094] Fix | Delete
if ( !prototype ) {
[1095] Fix | Delete
prototype = base;
[1096] Fix | Delete
base = $.Widget;
[1097] Fix | Delete
}
[1098] Fix | Delete
[1099] Fix | Delete
if ( Array.isArray( prototype ) ) {
[1100] Fix | Delete
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
[1101] Fix | Delete
}
[1102] Fix | Delete
[1103] Fix | Delete
// Create selector for plugin
[1104] Fix | Delete
$.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
[1105] Fix | Delete
return !!$.data( elem, fullName );
[1106] Fix | Delete
};
[1107] Fix | Delete
[1108] Fix | Delete
$[ namespace ] = $[ namespace ] || {};
[1109] Fix | Delete
existingConstructor = $[ namespace ][ name ];
[1110] Fix | Delete
constructor = $[ namespace ][ name ] = function( options, element ) {
[1111] Fix | Delete
[1112] Fix | Delete
// Allow instantiation without "new" keyword
[1113] Fix | Delete
if ( !this || !this._createWidget ) {
[1114] Fix | Delete
return new constructor( options, element );
[1115] Fix | Delete
}
[1116] Fix | Delete
[1117] Fix | Delete
// Allow instantiation without initializing for simple inheritance
[1118] Fix | Delete
// must use "new" keyword (the code above always passes args)
[1119] Fix | Delete
if ( arguments.length ) {
[1120] Fix | Delete
this._createWidget( options, element );
[1121] Fix | Delete
}
[1122] Fix | Delete
};
[1123] Fix | Delete
[1124] Fix | Delete
// Extend with the existing constructor to carry over any static properties
[1125] Fix | Delete
$.extend( constructor, existingConstructor, {
[1126] Fix | Delete
version: prototype.version,
[1127] Fix | Delete
[1128] Fix | Delete
// Copy the object used to create the prototype in case we need to
[1129] Fix | Delete
// redefine the widget later
[1130] Fix | Delete
_proto: $.extend( {}, prototype ),
[1131] Fix | Delete
[1132] Fix | Delete
// Track widgets that inherit from this widget in case this widget is
[1133] Fix | Delete
// redefined after a widget inherits from it
[1134] Fix | Delete
_childConstructors: []
[1135] Fix | Delete
} );
[1136] Fix | Delete
[1137] Fix | Delete
basePrototype = new base();
[1138] Fix | Delete
[1139] Fix | Delete
// We need to make the options hash a property directly on the new instance
[1140] Fix | Delete
// otherwise we'll modify the options hash on the prototype that we're
[1141] Fix | Delete
// inheriting from
[1142] Fix | Delete
basePrototype.options = $.widget.extend( {}, basePrototype.options );
[1143] Fix | Delete
$.each( prototype, function( prop, value ) {
[1144] Fix | Delete
if ( typeof value !== "function" ) {
[1145] Fix | Delete
proxiedPrototype[ prop ] = value;
[1146] Fix | Delete
return;
[1147] Fix | Delete
}
[1148] Fix | Delete
proxiedPrototype[ prop ] = ( function() {
[1149] Fix | Delete
function _super() {
[1150] Fix | Delete
return base.prototype[ prop ].apply( this, arguments );
[1151] Fix | Delete
}
[1152] Fix | Delete
[1153] Fix | Delete
function _superApply( args ) {
[1154] Fix | Delete
return base.prototype[ prop ].apply( this, args );
[1155] Fix | Delete
}
[1156] Fix | Delete
[1157] Fix | Delete
return function() {
[1158] Fix | Delete
var __super = this._super;
[1159] Fix | Delete
var __superApply = this._superApply;
[1160] Fix | Delete
var returnValue;
[1161] Fix | Delete
[1162] Fix | Delete
this._super = _super;
[1163] Fix | Delete
this._superApply = _superApply;
[1164] Fix | Delete
[1165] Fix | Delete
returnValue = value.apply( this, arguments );
[1166] Fix | Delete
[1167] Fix | Delete
this._super = __super;
[1168] Fix | Delete
this._superApply = __superApply;
[1169] Fix | Delete
[1170] Fix | Delete
return returnValue;
[1171] Fix | Delete
};
[1172] Fix | Delete
} )();
[1173] Fix | Delete
} );
[1174] Fix | Delete
constructor.prototype = $.widget.extend( basePrototype, {
[1175] Fix | Delete
[1176] Fix | Delete
// TODO: remove support for widgetEventPrefix
[1177] Fix | Delete
// always use the name + a colon as the prefix, e.g., draggable:start
[1178] Fix | Delete
// don't prefix for widgets that aren't DOM-based
[1179] Fix | Delete
widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
[1180] Fix | Delete
}, proxiedPrototype, {
[1181] Fix | Delete
constructor: constructor,
[1182] Fix | Delete
namespace: namespace,
[1183] Fix | Delete
widgetName: name,
[1184] Fix | Delete
widgetFullName: fullName
[1185] Fix | Delete
} );
[1186] Fix | Delete
[1187] Fix | Delete
// If this widget is being redefined then we need to find all widgets that
[1188] Fix | Delete
// are inheriting from it and redefine all of them so that they inherit from
[1189] Fix | Delete
// the new version of this widget. We're essentially trying to replace one
[1190] Fix | Delete
// level in the prototype chain.
[1191] Fix | Delete
if ( existingConstructor ) {
[1192] Fix | Delete
$.each( existingConstructor._childConstructors, function( i, child ) {
[1193] Fix | Delete
var childPrototype = child.prototype;
[1194] Fix | Delete
[1195] Fix | Delete
// Redefine the child widget using the same prototype that was
[1196] Fix | Delete
// originally used, but inherit from the new version of the base
[1197] Fix | Delete
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
[1198] Fix | Delete
child._proto );
[1199] Fix | Delete
} );
[1200] Fix | Delete
[1201] Fix | Delete
// Remove the list of existing child constructors from the old constructor
[1202] Fix | Delete
// so the old child constructors can be garbage collected
[1203] Fix | Delete
delete existingConstructor._childConstructors;
[1204] Fix | Delete
} else {
[1205] Fix | Delete
base._childConstructors.push( constructor );
[1206] Fix | Delete
}
[1207] Fix | Delete
[1208] Fix | Delete
$.widget.bridge( name, constructor );
[1209] Fix | Delete
[1210] Fix | Delete
return constructor;
[1211] Fix | Delete
};
[1212] Fix | Delete
[1213] Fix | Delete
$.widget.extend = function( target ) {
[1214] Fix | Delete
var input = widgetSlice.call( arguments, 1 );
[1215] Fix | Delete
var inputIndex = 0;
[1216] Fix | Delete
var inputLength = input.length;
[1217] Fix | Delete
var key;
[1218] Fix | Delete
var value;
[1219] Fix | Delete
[1220] Fix | Delete
for ( ; inputIndex < inputLength; inputIndex++ ) {
[1221] Fix | Delete
for ( key in input[ inputIndex ] ) {
[1222] Fix | Delete
value = input[ inputIndex ][ key ];
[1223] Fix | Delete
if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
[1224] Fix | Delete
[1225] Fix | Delete
// Clone objects
[1226] Fix | Delete
if ( $.isPlainObject( value ) ) {
[1227] Fix | Delete
target[ key ] = $.isPlainObject( target[ key ] ) ?
[1228] Fix | Delete
$.widget.extend( {}, target[ key ], value ) :
[1229] Fix | Delete
[1230] Fix | Delete
// Don't extend strings, arrays, etc. with objects
[1231] Fix | Delete
$.widget.extend( {}, value );
[1232] Fix | Delete
[1233] Fix | Delete
// Copy everything else by reference
[1234] Fix | Delete
} else {
[1235] Fix | Delete
target[ key ] = value;
[1236] Fix | Delete
}
[1237] Fix | Delete
}
[1238] Fix | Delete
}
[1239] Fix | Delete
}
[1240] Fix | Delete
return target;
[1241] Fix | Delete
};
[1242] Fix | Delete
[1243] Fix | Delete
$.widget.bridge = function( name, object ) {
[1244] Fix | Delete
var fullName = object.prototype.widgetFullName || name;
[1245] Fix | Delete
$.fn[ name ] = function( options ) {
[1246] Fix | Delete
var isMethodCall = typeof options === "string";
[1247] Fix | Delete
var args = widgetSlice.call( arguments, 1 );
[1248] Fix | Delete
var returnValue = this;
[1249] Fix | Delete
[1250] Fix | Delete
if ( isMethodCall ) {
[1251] Fix | Delete
[1252] Fix | Delete
// If this is an empty collection, we need to have the instance method
[1253] Fix | Delete
// return undefined instead of the jQuery instance
[1254] Fix | Delete
if ( !this.length && options === "instance" ) {
[1255] Fix | Delete
returnValue = undefined;
[1256] Fix | Delete
} else {
[1257] Fix | Delete
this.each( function() {
[1258] Fix | Delete
var methodValue;
[1259] Fix | Delete
var instance = $.data( this, fullName );
[1260] Fix | Delete
[1261] Fix | Delete
if ( options === "instance" ) {
[1262] Fix | Delete
returnValue = instance;
[1263] Fix | Delete
return false;
[1264] Fix | Delete
}
[1265] Fix | Delete
[1266] Fix | Delete
if ( !instance ) {
[1267] Fix | Delete
return $.error( "cannot call methods on " + name +
[1268] Fix | Delete
" prior to initialization; " +
[1269] Fix | Delete
"attempted to call method '" + options + "'" );
[1270] Fix | Delete
}
[1271] Fix | Delete
[1272] Fix | Delete
if ( typeof instance[ options ] !== "function" ||
[1273] Fix | Delete
options.charAt( 0 ) === "_" ) {
[1274] Fix | Delete
return $.error( "no such method '" + options + "' for " + name +
[1275] Fix | Delete
" widget instance" );
[1276] Fix | Delete
}
[1277] Fix | Delete
[1278] Fix | Delete
methodValue = instance[ options ].apply( instance, args );
[1279] Fix | Delete
[1280] Fix | Delete
if ( methodValue !== instance && methodValue !== undefined ) {
[1281] Fix | Delete
returnValue = methodValue && methodValue.jquery ?
[1282] Fix | Delete
returnValue.pushStack( methodValue.get() ) :
[1283] Fix | Delete
methodValue;
[1284] Fix | Delete
return false;
[1285] Fix | Delete
}
[1286] Fix | Delete
} );
[1287] Fix | Delete
}
[1288] Fix | Delete
} else {
[1289] Fix | Delete
[1290] Fix | Delete
// Allow multiple hashes to be passed on init
[1291] Fix | Delete
if ( args.length ) {
[1292] Fix | Delete
options = $.widget.extend.apply( null, [ options ].concat( args ) );
[1293] Fix | Delete
}
[1294] Fix | Delete
[1295] Fix | Delete
this.each( function() {
[1296] Fix | Delete
var instance = $.data( this, fullName );
[1297] Fix | Delete
if ( instance ) {
[1298] Fix | Delete
instance.option( options || {} );
[1299] Fix | Delete
if ( instance._init ) {
[1300] Fix | Delete
instance._init();
[1301] Fix | Delete
}
[1302] Fix | Delete
} else {
[1303] Fix | Delete
$.data( this, fullName, new object( options, this ) );
[1304] Fix | Delete
}
[1305] Fix | Delete
} );
[1306] Fix | Delete
}
[1307] Fix | Delete
[1308] Fix | Delete
return returnValue;
[1309] Fix | Delete
};
[1310] Fix | Delete
};
[1311] Fix | Delete
[1312] Fix | Delete
$.Widget = function( /* options, element */ ) {};
[1313] Fix | Delete
$.Widget._childConstructors = [];
[1314] Fix | Delete
[1315] Fix | Delete
$.Widget.prototype = {
[1316] Fix | Delete
widgetName: "widget",
[1317] Fix | Delete
widgetEventPrefix: "",
[1318] Fix | Delete
defaultElement: "<div>",
[1319] Fix | Delete
[1320] Fix | Delete
options: {
[1321] Fix | Delete
classes: {},
[1322] Fix | Delete
disabled: false,
[1323] Fix | Delete
[1324] Fix | Delete
// Callbacks
[1325] Fix | Delete
create: null
[1326] Fix | Delete
},
[1327] Fix | Delete
[1328] Fix | Delete
_createWidget: function( options, element ) {
[1329] Fix | Delete
element = $( element || this.defaultElement || this )[ 0 ];
[1330] Fix | Delete
this.element = $( element );
[1331] Fix | Delete
this.uuid = widgetUuid++;
[1332] Fix | Delete
this.eventNamespace = "." + this.widgetName + this.uuid;
[1333] Fix | Delete
[1334] Fix | Delete
this.bindings = $();
[1335] Fix | Delete
this.hoverable = $();
[1336] Fix | Delete
this.focusable = $();
[1337] Fix | Delete
this.classesElementLookup = {};
[1338] Fix | Delete
[1339] Fix | Delete
if ( element !== this ) {
[1340] Fix | Delete
$.data( element, this.widgetFullName, this );
[1341] Fix | Delete
this._on( true, this.element, {
[1342] Fix | Delete
remove: function( event ) {
[1343] Fix | Delete
if ( event.target === element ) {
[1344] Fix | Delete
this.destroy();
[1345] Fix | Delete
}
[1346] Fix | Delete
}
[1347] Fix | Delete
} );
[1348] Fix | Delete
this.document = $( element.style ?
[1349] Fix | Delete
[1350] Fix | Delete
// Element within the document
[1351] Fix | Delete
element.ownerDocument :
[1352] Fix | Delete
[1353] Fix | Delete
// Element is window or document
[1354] Fix | Delete
element.document || element );
[1355] Fix | Delete
this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
[1356] Fix | Delete
}
[1357] Fix | Delete
[1358] Fix | Delete
this.options = $.widget.extend( {},
[1359] Fix | Delete
this.options,
[1360] Fix | Delete
this._getCreateOptions(),
[1361] Fix | Delete
options );
[1362] Fix | Delete
[1363] Fix | Delete
this._create();
[1364] Fix | Delete
[1365] Fix | Delete
if ( this.options.disabled ) {
[1366] Fix | Delete
this._setOptionDisabled( this.options.disabled );
[1367] Fix | Delete
}
[1368] Fix | Delete
[1369] Fix | Delete
this._trigger( "create", null, this._getCreateEventData() );
[1370] Fix | Delete
this._init();
[1371] Fix | Delete
},
[1372] Fix | Delete
[1373] Fix | Delete
_getCreateOptions: function() {
[1374] Fix | Delete
return {};
[1375] Fix | Delete
},
[1376] Fix | Delete
[1377] Fix | Delete
_getCreateEventData: $.noop,
[1378] Fix | Delete
[1379] Fix | Delete
_create: $.noop,
[1380] Fix | Delete
[1381] Fix | Delete
_init: $.noop,
[1382] Fix | Delete
[1383] Fix | Delete
destroy: function() {
[1384] Fix | Delete
var that = this;
[1385] Fix | Delete
[1386] Fix | Delete
this._destroy();
[1387] Fix | Delete
$.each( this.classesElementLookup, function( key, value ) {
[1388] Fix | Delete
that._removeClass( value, key );
[1389] Fix | Delete
} );
[1390] Fix | Delete
[1391] Fix | Delete
// We can probably remove the unbind calls in 2.0
[1392] Fix | Delete
// all event bindings should go through this._on()
[1393] Fix | Delete
this.element
[1394] Fix | Delete
.off( this.eventNamespace )
[1395] Fix | Delete
.removeData( this.widgetFullName );
[1396] Fix | Delete
this.widget()
[1397] Fix | Delete
.off( this.eventNamespace )
[1398] Fix | Delete
.removeAttr( "aria-disabled" );
[1399] Fix | Delete
[1400] Fix | Delete
// Clean up events and states
[1401] Fix | Delete
this.bindings.off( this.eventNamespace );
[1402] Fix | Delete
},
[1403] Fix | Delete
[1404] Fix | Delete
_destroy: $.noop,
[1405] Fix | Delete
[1406] Fix | Delete
widget: function() {
[1407] Fix | Delete
return this.element;
[1408] Fix | Delete
},
[1409] Fix | Delete
[1410] Fix | Delete
option: function( key, value ) {
[1411] Fix | Delete
var options = key;
[1412] Fix | Delete
var parts;
[1413] Fix | Delete
var curOption;
[1414] Fix | Delete
var i;
[1415] Fix | Delete
[1416] Fix | Delete
if ( arguments.length === 0 ) {
[1417] Fix | Delete
[1418] Fix | Delete
// Don't return a reference to the internal hash
[1419] Fix | Delete
return $.widget.extend( {}, this.options );
[1420] Fix | Delete
}
[1421] Fix | Delete
[1422] Fix | Delete
if ( typeof key === "string" ) {
[1423] Fix | Delete
[1424] Fix | Delete
// Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
[1425] Fix | Delete
options = {};
[1426] Fix | Delete
parts = key.split( "." );
[1427] Fix | Delete
key = parts.shift();
[1428] Fix | Delete
if ( parts.length ) {
[1429] Fix | Delete
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
[1430] Fix | Delete
for ( i = 0; i < parts.length - 1; i++ ) {
[1431] Fix | Delete
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
[1432] Fix | Delete
curOption = curOption[ parts[ i ] ];
[1433] Fix | Delete
}
[1434] Fix | Delete
key = parts.pop();
[1435] Fix | Delete
if ( arguments.length === 1 ) {
[1436] Fix | Delete
return curOption[ key ] === undefined ? null : curOption[ key ];
[1437] Fix | Delete
}
[1438] Fix | Delete
curOption[ key ] = value;
[1439] Fix | Delete
} else {
[1440] Fix | Delete
if ( arguments.length === 1 ) {
[1441] Fix | Delete
return this.options[ key ] === undefined ? null : this.options[ key ];
[1442] Fix | Delete
}
[1443] Fix | Delete
options[ key ] = value;
[1444] Fix | Delete
}
[1445] Fix | Delete
}
[1446] Fix | Delete
[1447] Fix | Delete
this._setOptions( options );
[1448] Fix | Delete
[1449] Fix | Delete
return this;
[1450] Fix | Delete
},
[1451] Fix | Delete
[1452] Fix | Delete
_setOptions: function( options ) {
[1453] Fix | Delete
var key;
[1454] Fix | Delete
[1455] Fix | Delete
for ( key in options ) {
[1456] Fix | Delete
this._setOption( key, options[ key ] );
[1457] Fix | Delete
}
[1458] Fix | Delete
[1459] Fix | Delete
return this;
[1460] Fix | Delete
},
[1461] Fix | Delete
[1462] Fix | Delete
_setOption: function( key, value ) {
[1463] Fix | Delete
if ( key === "classes" ) {
[1464] Fix | Delete
this._setOptionClasses( value );
[1465] Fix | Delete
}
[1466] Fix | Delete
[1467] Fix | Delete
this.options[ key ] = value;
[1468] Fix | Delete
[1469] Fix | Delete
if ( key === "disabled" ) {
[1470] Fix | Delete
this._setOptionDisabled( value );
[1471] Fix | Delete
}
[1472] Fix | Delete
[1473] Fix | Delete
return this;
[1474] Fix | Delete
},
[1475] Fix | Delete
[1476] Fix | Delete
_setOptionClasses: function( value ) {
[1477] Fix | Delete
var classKey, elements, currentElements;
[1478] Fix | Delete
[1479] Fix | Delete
for ( classKey in value ) {
[1480] Fix | Delete
currentElements = this.classesElementLookup[ classKey ];
[1481] Fix | Delete
if ( value[ classKey ] === this.options.classes[ classKey ] ||
[1482] Fix | Delete
!currentElements ||
[1483] Fix | Delete
!currentElements.length ) {
[1484] Fix | Delete
continue;
[1485] Fix | Delete
}
[1486] Fix | Delete
[1487] Fix | Delete
// We are doing this to create a new jQuery object because the _removeClass() call
[1488] Fix | Delete
// on the next line is going to destroy the reference to the current elements being
[1489] Fix | Delete
// tracked. We need to save a copy of this collection so that we can add the new classes
[1490] Fix | Delete
// below.
[1491] Fix | Delete
elements = $( currentElements.get() );
[1492] Fix | Delete
this._removeClass( currentElements, classKey );
[1493] Fix | Delete
[1494] Fix | Delete
// We don't use _addClass() here, because that uses this.options.classes
[1495] Fix | Delete
// for generating the string of classes. We want to use the value passed in from
[1496] Fix | Delete
// _setOption(), this is the new value of the classes option which was passed to
[1497] Fix | Delete
// _setOption(). We pass this value directly to _classes().
[1498] Fix | Delete
elements.addClass( this._classes( {
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function