Permalink
Browse files

Selector: filters -> pseudos

Fixes gh-2073
Close gh-2969
  • Loading branch information...
1 parent 00575d4 commit 0402963845be8d71c4e8ddf65e7c055014739b60 Timmy Willison committed Mar 3, 2016
Showing with 6 additions and 4 deletions.
  1. +3 −3 src/css/hiddenVisibleSelectors.js
  2. +1 −1 src/effects/animatedSelector.js
  3. +2 −0 src/selector-sizzle.js
@@ -3,10 +3,10 @@ define( [
"../selector"
], function( jQuery ) {
-jQuery.expr.filters.hidden = function( elem ) {
- return !jQuery.expr.filters.visible( elem );
+jQuery.expr.pseudos.hidden = function( elem ) {
+ return !jQuery.expr.pseudos.visible( elem );
};
-jQuery.expr.filters.visible = function( elem ) {
+jQuery.expr.pseudos.visible = function( elem ) {
return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
};
@@ -4,7 +4,7 @@ define( [
"../effects"
], function( jQuery ) {
-jQuery.expr.filters.animated = function( elem ) {
+jQuery.expr.pseudos.animated = function( elem ) {
return jQuery.grep( jQuery.timers, function( fn ) {
return elem === fn.elem;
} ).length;
@@ -5,6 +5,8 @@ define( [
jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
+
+// Deprecated
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
jQuery.text = Sizzle.getText;

0 comments on commit 0402963

Please sign in to comment.