MCPcopy
hub / github.com/Shopify/draggable / destroy

Method destroy

src/Swappable/Swappable.js:82–88  ·  view source on GitHub ↗

* Destroys Swappable instance.

()

Source from the content-addressed store, hash-verified

80 * Destroys Swappable instance.
81 */
82 destroy() {
83 super.destroy();
84
85 this.off('drag:start', this._onDragStart)
86 .off('drag:over', this._onDragOver)
87 .off('drag:stop', this._onDragStop);
88 }
89
90 /**
91 * Drag start handler

Callers 1

Swappable.test.jsFile · 0.45

Calls 1

offMethod · 0.45

Tested by

no test coverage detected