From 2f4d0b606aca26143f58f2b0ae22eb74774192a8 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 18 Aug 2017 19:07:04 +0200 Subject: [PATCH] Little fix in resizer --- src/commands/view/SelectComponent.js | 1 - src/utils/Resizer.js | 1 - 2 files changed, 2 deletions(-) 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') {