(opts: DDResizableOpt)
| 103 | } |
| 104 | |
| 105 | public updateOption(opts: DDResizableOpt): DDResizable { |
| 106 | const updateHandles = (opts.handles && opts.handles !== this.option.handles); |
| 107 | const updateAutoHide = (opts.autoHide && opts.autoHide !== this.option.autoHide); |
| 108 | Object.keys(opts).forEach(key => this.option[key] = opts[key]); |
| 109 | if (updateHandles) { |
| 110 | this._removeHandlers(); |
| 111 | this._setupHandlers(); |
| 112 | } |
| 113 | if (updateAutoHide) { |
| 114 | this._setupAutoHide(this.option.autoHide); |
| 115 | } |
| 116 | return this; |
| 117 | } |
| 118 | |
| 119 | /** @internal turns auto hide on/off */ |
| 120 | protected _setupAutoHide(auto: boolean): DDResizable { |
nothing calls this directly
no test coverage detected