From e96d1181fcd172df0d385bd81ad49a8f8db3646e Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 18 Apr 2018 23:05:28 +0200 Subject: [PATCH] Refactor handleChange --- src/css_composer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css_composer/index.js b/src/css_composer/index.js index 337209356..c78d681c7 100644 --- a/src/css_composer/index.js +++ b/src/css_composer/index.js @@ -109,10 +109,10 @@ module.exports = () => { const ev = 'change:style'; const um = em.get('UndoManager'); um && um.add(model); - !opts.avoidStore && em.handleUpdates('', '', opts); const handleUpdates = em.handleUpdates.bind(em); em.stopListening(model, ev, handleUpdates); em.listenTo(model, ev, handleUpdates); + !opts.avoidStore && handleUpdates('', '', opts); }, /**