@@ -80,7 +80,7 @@ $.widget = function( name, base, prototype ) {
80
80
}
81
81
82
82
// Create selector for plugin
83
- $.expr[ ":" ] [ fullName.toLowerCase() ] = function( elem ) {
83
+ $.expr.pseudos [ fullName.toLowerCase() ] = function( elem ) {
84
84
return !!$.data( elem, fullName );
85
85
};
86
86
@@ -514,7 +514,7 @@ $.Widget.prototype = {
514
514
for ( i = 0; i < classes.length; i++ ) {
515
515
current = that.classesElementLookup[ classes[ i ] ] || $();
516
516
if ( options.add ) {
517
- current = $( $.unique ( current.get().concat( options.element.get() ) ) );
517
+ current = $( $.uniqueSort ( current.get().concat( options.element.get() ) ) );
518
518
} else {
519
519
current = $( current.not( options.element ).get() );
520
520
}
@@ -1246,7 +1246,7 @@ var position = $.ui.position;
1246
1246
//>>docs: http://api.jqueryui.com/data-selector/
1247
1247
1248
1248
1249
- var data = $.extend( $.expr[ ":" ] , {
1249
+ var data = $.extend( $.expr.pseudos , {
1250
1250
data: $.expr.createPseudo ?
1251
1251
$.expr.createPseudo( function( dataName ) {
1252
1252
return function( elem ) {
@@ -1361,7 +1361,7 @@ function visible( element ) {
1361
1361
return visibility !== "hidden";
1362
1362
}
1363
1363
1364
- $.extend( $.expr[ ":" ] , {
1364
+ $.extend( $.expr.pseudos , {
1365
1365
focusable: function( element ) {
1366
1366
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
1367
1367
}
@@ -1671,7 +1671,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) {
1671
1671
1672
1672
1673
1673
1674
- var tabbable = $.extend( $.expr[ ":" ] , {
1674
+ var tabbable = $.extend( $.expr.pseudos , {
1675
1675
tabbable: function( element ) {
1676
1676
var tabIndex = $.attr( element, "tabindex" ),
1677
1677
hasTabindex = tabIndex != null;
@@ -8791,7 +8791,7 @@ var widgetsControlgroup = $.widget( "ui.controlgroup", {
8791
8791
} );
8792
8792
} );
8793
8793
8794
- this.childWidgets = $( $.unique ( childWidgets ) );
8794
+ this.childWidgets = $( $.uniqueSort ( childWidgets ) );
8795
8795
this._addClass( this.childWidgets, "ui-controlgroup-item" );
8796
8796
},
8797
8797
@@ -10461,7 +10461,7 @@ $.extend( Datepicker.prototype, {
10461
10461
inst = this._getInst( obj ),
10462
10462
isRTL = this._get( inst, "isRTL" );
10463
10463
10464
- while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters .hidden( obj ) ) ) {
10464
+ while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos .hidden( obj ) ) ) {
10465
10465
obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
10466
10466
}
10467
10467
@@ -17051,12 +17051,12 @@ $.fn.extend( {
17051
17051
17052
17052
( function() {
17053
17053
17054
- if ( $.expr && $.expr.filters && $.expr.filters .animated ) {
17055
- $.expr.filters .animated = ( function( orig ) {
17054
+ if ( $.expr && $.expr.pseudos && $.expr.pseudos .animated ) {
17055
+ $.expr.pseudos .animated = ( function( orig ) {
17056
17056
return function( elem ) {
17057
17057
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
17058
17058
};
17059
- } )( $.expr.filters .animated );
17059
+ } )( $.expr.pseudos .animated );
17060
17060
}
17061
17061
17062
17062
if ( $.uiBackCompat !== false ) {
0 commit comments