MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / destroy

Method destroy

src/dd-draggable.ts:131–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 public destroy(): void {
132 if (this.dragTimeout) window.clearTimeout(this.dragTimeout);
133 delete this.dragTimeout;
134 if (this.mouseDownEvent) this._mouseUp(this.mouseDownEvent);
135 this.disable(true);
136 delete this.el;
137 delete this.helper;
138 delete this.option;
139 super.destroy();
140 }
141
142 public updateOption(opts: DDDragOpt): DDDraggable {
143 Object.keys(opts).forEach(key => this.option[key] = opts[key]);

Callers

nothing calls this directly

Calls 2

_mouseUpMethod · 0.95
disableMethod · 0.95

Tested by

no test coverage detected