aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/delay.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-06-14 19:21:57 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-06-17 12:29:49 +0200
commit219c7494938a10b985b7827990bc419e41585b10 (patch)
tree9e305db6cae35cf26a2b9e4367d3632b2a4b8793 /src/queue/delay.js
parentb04124222395a05c80d4f1c3a70333fdb07bfe3d (diff)
downloadjquery-219c7494938a10b985b7827990bc419e41585b10.tar.gz
jquery-219c7494938a10b985b7827990bc419e41585b10.zip
Core: Use window.setTimeout & friends instead of global equivalents
Fixes gh-2177
Diffstat (limited to 'src/queue/delay.js')
-rw-r--r--src/queue/delay.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/queue/delay.js b/src/queue/delay.js
index 037ef0998..d2aa7e409 100644
--- a/src/queue/delay.js
+++ b/src/queue/delay.js
@@ -1,8 +1,10 @@
define([
"../core",
+ "../var/setTimeout",
+ "../var/clearTimeout",
"../queue",
"../effects" // Delay is optional because of this dependency
-], function( jQuery ) {
+], function( jQuery, setTimeout, clearTimeout ) {
// Based off of the plugin by Clint Helfers, with permission.
// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/