forked from cujojs/when
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timed.js
31 lines (25 loc) · 783 Bytes
/
timed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/** @license MIT License (c) copyright B Cavalier & J Hann */
/**
* timed.js
*
* Helper group that aggregates all time & delay related helpers. If you
* use several of these helpers it can be more convenient to use this module
* instead of the individual helpers
*
* @author [email protected]
*/
(function(define) {
define(['./timeout', './delay'], function(timeout, delay) {
return {
timeout: timeout,
delay: delay
};
});
})(typeof define == 'function'
? define
: function (deps, factory) { typeof module != 'undefined'
? (module.exports = factory.apply(this, deps.map(require)))
: (this.when_timed = factory(this.when_timeout, this.when_delay));
}
// Boilerplate for AMD, Node, and browser global
);