From: John Resig Date: Sat, 8 Sep 2007 12:33:06 +0000 (+0000) Subject: Added a new :animated selector - only selects elements that are currently being animated. X-Git-Tag: 1.2~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13b66c8ba9618242df2c1cc352a2b1d879c36188;p=jquery.git Added a new :animated selector - only selects elements that are currently being animated. --- 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" } },