aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2016-03-03 15:33:57 -0500
committerTimmy Willison <timmywillisn@gmail.com>2016-03-07 11:14:53 -0500
commit0402963845be8d71c4e8ddf65e7c055014739b60 (patch)
tree757db7e5604007fe49541ea26b8170572d5175d9 /src
parent00575d4d8c7421c5119f181009374ff2e7736127 (diff)
downloadjquery-0402963845be8d71c4e8ddf65e7c055014739b60.tar.gz
jquery-0402963845be8d71c4e8ddf65e7c055014739b60.zip
Selector: filters -> pseudos
Fixes gh-2073 Close gh-2969
Diffstat (limited to 'src')
-rw-r--r--src/css/hiddenVisibleSelectors.js6
-rw-r--r--src/effects/animatedSelector.js2
-rw-r--r--src/selector-sizzle.js2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/css/hiddenVisibleSelectors.js b/src/css/hiddenVisibleSelectors.js
index 9a8a28cf8..e155acda7 100644
--- a/src/css/hiddenVisibleSelectors.js
+++ b/src/css/hiddenVisibleSelectors.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 );
};
diff --git a/src/effects/animatedSelector.js b/src/effects/animatedSelector.js
index d84c9c703..2fe1f71a7 100644
--- a/src/effects/animatedSelector.js
+++ b/src/effects/animatedSelector.js
@@ -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;
diff --git a/src/selector-sizzle.js b/src/selector-sizzle.js
index 678df0975..1dc0ea324 100644
--- a/src/selector-sizzle.js
+++ b/src/selector-sizzle.js
@@ -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;