()
| 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]); |