destroy0() { clearTimeout(this.connectivityCheckStartTimeout); clearTimeout(this.respawnTimeout); clearInterval(this.connectivityCheckInterval); return this._send0({ type: 'destroy-actor' }, { receive: true }); }
const task = message => { progress = animateProgress(message); process.stdout.write(message); return error => { if (error) { process.stderr.write(error); } clearTimeout(progress); return addCheckmark(() => newLine()); }; }
componentWillUnmount() { if (this.timer) { clearTimeout(this.timer); } }
private clearGaugeStatus() { Object.values(this.mapGaugeStatus).forEach((gs: GaugeStatus) => { try { if (gs.actionRef && gs.actionRef.timer) { clearTimeout(gs.actionRef.timer); } } catch (e) { } }); this.mapGaugeStatus = {}; }
function showNotif(text: string, desc: string = '') { clearTimeout(notifTimeout); titleNode.textContent = text; descNode.innerHTML = desc; document.body.appendChild(notifNode); notifTimeout = setTimeout(() => { document.body.removeChild(notifNode); }, 5000); }
f.each(g,function(e,t){i(t)&&i(t).delayTimer&&(clearTimeout(i(t).delayTimer.setTimeout),i(t).delayTimer.next&&i(t).delayTimer.next(),delete i(t).delayTimer)});
// if it's a touch-enabled device, mouseenter/leave are fired as // part of the mouse compatibility events on first tap - the carousel // would stop cycling until user tapped out of it; // here, we listen for touchend, explicitly pause the carousel // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling $$$1(this._element).on(Event.TOUCHEND, function () { _this2.pause(); if (_this2.touchTimeout) { clearTimeout(_this2.touchTimeout); } _this2.touchTimeout = setTimeout(function (event) { return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); });
define([ "../core", "../queue", "../effects" // Delay is optional because of this dependency ], function( jQuery ) { // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ jQuery.fn.delay = function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }; return jQuery.fn.delay; });
destroy() { clearTimeout(this.respawnTimeout); return super.destroy(); }
// transition private animateButtons(eventType) { this.buttons.toArray().forEach((btn, i) => { i += 1; const style = btn.elementref.nativeElement.style; if (eventType !== 'directionChanged' && this.state.getValue().display) { style['transform'] = 'scale(1)'; style['transition-duration'] = '0s'; if (btn.timeout) { clearTimeout(btn.timeout); } } setTimeout(() => { style['transition-duration'] = this.state.getValue().display ? `${90 + (100 * i)}ms` : ''; style['transform'] = this.state.getValue().display ? this.getTranslate(i) : ''; }, 50); if (eventType !== 'directionChanged' && !this.state.getValue().display) { btn.timeout = setTimeout(() => { style['transform'] = 'scale(0)'; }, 90 + (100 * i)); } }); }
var heartbeat = function(data) { var obj = Package.encode(Package.TYPE_HEARTBEAT); if(heartbeatTimeoutId) { clearTimeout(heartbeatTimeoutId); heartbeatTimeoutId = null; } if(heartbeatId) { // already in a heartbeat interval return; } heartbeatId = setTimeout(function() { heartbeatId = null; send(obj); nextHeartbeatTimeout = Date.now() + heartbeatTimeout; heartbeatTimeoutId = setTimeout(heartbeatTimeoutCb, heartbeatTimeout); }, heartbeatInterval); }
function o(e) { if (f === clearTimeout) return clearTimeout(e); if ((f === r || !f) && clearTimeout) return (f = clearTimeout), clearTimeout(e); try { return f(e); } catch (t) { try { return f.call(null, e); } catch (t) { return f.call(this, e); } } }
onChangeSearch(searchText) { const page = 1 this.setState({ searchText, page }) clearTimeout(this.timer) this.timer = setTimeout(() => { this.load(page, searchText) }, 300) }
// if it's a touch-enabled device, mouseenter/leave are fired as // part of the mouse compatibility events on first tap - the carousel // would stop cycling until user tapped out of it; // here, we listen for touchend, explicitly pause the carousel // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling $$$1(this._element).on(Event.TOUCHEND, function () { _this2.pause(); if (_this2.touchTimeout) { clearTimeout(_this2.touchTimeout); } _this2.touchTimeout = setTimeout(function (event) { return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); });
// If it's a touch-enabled device, mouseenter/leave are fired as // part of the mouse compatibility events on first tap - the carousel // would stop cycling until user tapped out of it; // here, we listen for touchend, explicitly pause the carousel // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling $$$1(this._element).on(Event.TOUCHEND, function () { _this2.pause(); if (_this2.touchTimeout) { clearTimeout(_this2.touchTimeout); } _this2.touchTimeout = setTimeout(function (event) { return _this2.cycle(event); }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval); });