MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / start

Method start

src/hints/IdleTimer.js:20–28  ·  view source on GitHub ↗

* @param {Number} time time in milliseconds * @return {void}@memberof IdleTimer

(time = 15000)

Source from the content-addressed store, hash-verified

18 * @return {void}@memberof IdleTimer
19 */
20 start(time = 15000) {
21 if (!time) {
22 Debugger.log('warn', '[IdleTimer.start()] must specify a time!');
23 return;
24 }
25
26 this.length = time;
27 this.timer = setTimeout(this.dispatch.bind(this), time);
28 }
29
30 /**
31 * resets the timer, does not call subscribed functions

Callers 2

setupPluginsMethod · 0.45
IdleTimer.spec.jsFile · 0.45

Calls 1

logMethod · 0.80

Tested by

no test coverage detected