git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
902554a
)
Added a new :animated selector - only selects elements that are currently being animated.
author
John Resig
<jeresig@gmail.com>
Sat, 8 Sep 2007 12:33:06 +0000
(12:33 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 8 Sep 2007 12:33:06 +0000
(12:33 +0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
263fc6f
..
33017aa
100644
(file)
--- 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"
}
},