aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/animated-selector.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-08-15 14:15:49 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-15 14:15:49 -0400
commit6318ae6ab90d4b450dfadf32ab95fe52ed6331cb (patch)
tree50b247fed8569e909e380b281e9145bd1458a39e /src/effects/animated-selector.js
parent7627b8b6d9ef6e57dbd20a55b946bd1991c1223e (diff)
downloadjquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.tar.gz
jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.zip
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Diffstat (limited to 'src/effects/animated-selector.js')
-rw-r--r--src/effects/animated-selector.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/effects/animated-selector.js b/src/effects/animated-selector.js
new file mode 100644
index 000000000..290e32bfa
--- /dev/null
+++ b/src/effects/animated-selector.js
@@ -0,0 +1,11 @@
+define([
+ "../core",
+ "../selector",
+ "../effects",
+], function( jQuery ) {
+ jQuery.expr.filters.animated = function( elem ) {
+ return jQuery.grep(jQuery.timers, function( fn ) {
+ return elem === fn.elem;
+ }).length;
+ };
+}); \ No newline at end of file