Every line of 'javascript dispose' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
30 dispose() { 31 if (this.fakeTimers) { 32 this.fakeTimers.dispose(); 33 } 34 if (this.global) { 35 this.global.close(); 36 } 37 this.global = null; 38 this.document = null; 39 this.fakeTimers = null; 40 }
193 dispose() { 194 console.log("Disposed Chart Widget"); 195 }
80 dispose() { 81 if (this.observer) { 82 // Stop observing. 83 this.observer.dispose() 84 // Cancel batched effects. 85 this.observer = null 86 } 87 }
20 dispose () { 21 this._dispose(this._resource) 22 }
76 dispose() { 77 // tslint:disable-next-line:no-console 78 console.log(`[Stopping renderer(${this.type})]`); 79 this.threeRenderer.dispose(); 80 window.removeEventListener('keydown', this.keyListener); 81 }
44 dispose(): void { 45 if (this.isDisposed) { 46 return; 47 } 48 super.dispose(); 49 this.toDispose.dispose(); 50 }
33 dispose() { 34 throw new Error(`no implementation of function dispose`); 35 }
18 export function dispose(disposables: T[]): T[] { 19 disposables.forEach((d) => d.dispose()); 20 return []; 21 }
149 value: function dispose() { 150 $.removeData(this._element, DATA_KEY); 151 $(this._scrollElement).off(EVENT_KEY); 152 153 this._element = null; 154 this._scrollElement = null; 155 this._config = null; 156 this._selector = null; 157 this._offsets = null; 158 this._targets = null; 159 this._activeTarget = null; 160 this._scrollHeight = null; 161 }
20 public dispose() { 21 this.disposable.forEach(disposable => disposable.dispose()); 22 }