diff options
Diffstat (limited to 'src/effects/animated-selector.js')
-rw-r--r-- | src/effects/animated-selector.js | 11 |
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 |