aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-09-08 12:33:06 +0000
committerJohn Resig <jeresig@gmail.com>2007-09-08 12:33:06 +0000
commit13b66c8ba9618242df2c1cc352a2b1d879c36188 (patch)
treef482c6b61d19315e5324ebbd90f6c69d9d4e597d /src/selector
parent902554a38da6c9e2d0c115bc189634d56f9b4d34 (diff)
downloadjquery-13b66c8ba9618242df2c1cc352a2b1d879c36188.tar.gz
jquery-13b66c8ba9618242df2c1cc352a2b1d879c36188.zip
Added a new :animated selector - only selects elements that are currently being animated.
Diffstat (limited to 'src/selector')
-rw-r--r--src/selector/selector.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 263fc6f63..33017aa60 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -59,7 +59,10 @@ jQuery.extend({
has: "jQuery.find(m[3],a).length",
// :header
- header: "/h\\d/i.test(a.nodeName)"
+ header: "/h\\d/i.test(a.nodeName)",
+
+ // :animated
+ animated: "jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length"
}
},