You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
307 B
14 lines
307 B
import bindFn from './bind-fn';
|
|
|
|
/**
|
|
* @private
|
|
* set a timeout with a given scope
|
|
* @param {Function} fn
|
|
* @param {Number} timeout
|
|
* @param {Object} context
|
|
* @returns {number}
|
|
*/
|
|
export default function setTimeoutContext(fn, timeout, context) {
|
|
return setTimeout(bindFn(fn, context), timeout);
|
|
}
|