mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
b61b16b5a8
Closes gh-1923
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
/*!
|
|
* jQuery UI Support for jQuery core 1.8.x and newer @VERSION
|
|
* http://jqueryui.com
|
|
*
|
|
* Copyright jQuery Foundation and other contributors
|
|
* Released under the MIT license.
|
|
* http://jquery.org/license
|
|
*
|
|
*/
|
|
|
|
//>>label: jQuery 1.8+ Support
|
|
//>>group: Core
|
|
//>>description: Support version 1.8.x and newer of jQuery core
|
|
|
|
( function( factory ) {
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
// AMD. Register as an anonymous module.
|
|
define( [ "jquery", "./version" ], factory );
|
|
} else {
|
|
|
|
// Browser globals
|
|
factory( jQuery );
|
|
}
|
|
}( function( $ ) {
|
|
|
|
// Support: jQuery 1.9.x or older
|
|
// $.expr[ ":" ] is deprecated.
|
|
if ( !$.expr.pseudos ) {
|
|
$.expr.pseudos = $.expr[ ":" ];
|
|
}
|
|
|
|
// Support: jQuery 1.11.x or older
|
|
// $.unique has been renamed to $.uniqueSort
|
|
if ( !$.uniqueSort ) {
|
|
$.uniqueSort = $.unique;
|
|
}
|
|
|
|
// Support: jQuery 3.4.x or older
|
|
// These methods have been defined in jQuery 3.5.0.
|
|
if ( !$.fn.even || !$.fn.odd ) {
|
|
$.fn.extend( {
|
|
even: function() {
|
|
return this.filter( function( i ) {
|
|
return i % 2 === 0;
|
|
} );
|
|
},
|
|
odd: function() {
|
|
return this.filter( function( i ) {
|
|
return i % 2 === 1;
|
|
} );
|
|
}
|
|
} );
|
|
}
|
|
|
|
} ) );
|