diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index b806acc74..2b43a23b1 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -366,7 +366,6 @@ module.exports = { const {store, selectedHandler} = options; const onlyHeight = ['tc', 'bc'].indexOf(selectedHandler) >= 0; const onlyWidth = ['cl', 'cr'].indexOf(selectedHandler) >= 0; - const unit = 'px'; const style = modelToStyle.getStyle(); diff --git a/src/utils/Resizer.js b/src/utils/Resizer.js index ebfba53a9..aeef0a327 100644 --- a/src/utils/Resizer.js +++ b/src/utils/Resizer.js @@ -291,7 +291,6 @@ class Resizer { doc.off('keydown', this.handleKeyDown); doc.off('mouseup', this.stop); this.updateRect(1); - this.selectedHandler = ''; // Stop callback if (typeof this.onEnd === 'function') {