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-Url: http://git.asbjorn.it/?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 263fc6f..33017aa 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" } },