mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
default timeout'd scope is null / global. Fixes #484
This commit is contained in:
@@ -519,7 +519,7 @@
|
|||||||
// it with the arguments supplied.
|
// it with the arguments supplied.
|
||||||
_.delay = function(func, wait) {
|
_.delay = function(func, wait) {
|
||||||
var args = slice.call(arguments, 2);
|
var args = slice.call(arguments, 2);
|
||||||
return setTimeout(function(){ return func.apply(func, args); }, wait);
|
return setTimeout(function(){ return func.apply(null, args); }, wait);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Defers a function, scheduling it to run after the current call stack has
|
// Defers a function, scheduling it to run after the current call stack has
|
||||||
|
|||||||
Reference in New Issue
Block a user