]> source.dussan.org Git - jquery.git/commitdiff
Added a new :animated selector - only selects elements that are currently being animated.
authorJohn Resig <jeresig@gmail.com>
Sat, 8 Sep 2007 12:33:06 +0000 (12:33 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 8 Sep 2007 12:33:06 +0000 (12:33 +0000)
src/selector/selector.js

index 263fc6f630c017f84e2c81c3ca11943d58db09e7..33017aa60af1c7d96fd4d5aeedaa034a4c85e5d2 100644 (file)
@@ -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"
                }
        },