MCPcopy Index your code
hub / github.com/TheOrcDev/github-creature / dispose

Method dispose

components/liquid-ether.tsx:216–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 this.docTarget?.addEventListener("mouseleave", this._onDocumentLeave);
215 }
216 dispose() {
217 if (this.listenerTarget) {
218 this.listenerTarget.removeEventListener(
219 "mousemove",
220 this._onMouseMove
221 );
222 this.listenerTarget.removeEventListener(
223 "touchstart",
224 this._onTouchStart
225 );
226 this.listenerTarget.removeEventListener(
227 "touchmove",
228 this._onTouchMove
229 );
230 this.listenerTarget.removeEventListener("touchend", this._onTouchEnd);
231 }
232 if (this.docTarget) {
233 this.docTarget.removeEventListener(
234 "mouseleave",
235 this._onDocumentLeave
236 );
237 }
238 this.listenerTarget = null;
239 this.docTarget = null;
240 this.container = null;
241 }
242 private isPointInside(clientX: number, clientY: number) {
243 if (!this.container) return false;
244 const rect = this.container.getBoundingClientRect();

Callers 3

LightPillarFunction · 0.45
disposeMethod · 0.45
LiquidEtherFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected