Remove unnecessary return statements from _.delay and _.defer.

Former-commit-id: fb912605e8414b1a4d9d2d8ae96f21dfe95609c2
This commit is contained in:
John-David Dalton
2012-10-21 17:29:41 -07:00
parent c17e3646d5
commit de3b01b54b

View File

@@ -3284,7 +3284,7 @@
*/
function delay(func, wait) {
var args = slice.call(arguments, 2);
return setTimeout(function() { return func.apply(undefined, args); }, wait);
return setTimeout(function() { func.apply(undefined, args); }, wait);
}
/**
@@ -3304,7 +3304,7 @@
*/
function defer(func) {
var args = slice.call(arguments, 1);
return setTimeout(function() { return func.apply(undefined, args); }, 1);
return setTimeout(function() { func.apply(undefined, args); }, 1);
}
/**