diff options
Diffstat (limited to 'ui/jquery-1-7.js')
-rw-r--r-- | ui/jquery-1-7.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/jquery-1-7.js b/ui/jquery-1-7.js index 5e7907a15..3d0870f7c 100644 --- a/ui/jquery-1-7.js +++ b/ui/jquery-1-7.js @@ -98,4 +98,21 @@ 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; + } ); + } + } ); +} + } ) ); |