Bump to v3.0.0.

This commit is contained in:
John-David Dalton
2015-01-08 00:37:01 -08:00
committed by jdalton
commit 9b7c4d6761
349 changed files with 23184 additions and 0 deletions

24
function/delay.js Normal file
View File

@@ -0,0 +1,24 @@
define(['../internal/baseDelay'], function(baseDelay) {
/**
* Invokes `func` after `wait` milliseconds. Any additional arguments are
* provided to `func` when it is invoked.
*
* @static
* @memberOf _
* @category Function
* @param {Function} func The function to delay.
* @param {number} wait The number of milliseconds to delay invocation.
* @param {...*} [args] The arguments to invoke the function with.
* @returns {number} Returns the timer id.
* @example
*
* _.delay(function(text) { console.log(text); }, 1000, 'later');
* // => logs 'later' after one second
*/
function delay(func, wait) {
return baseDelay(func, wait, arguments, 2);
}
return delay;
});