From dab30fd8f1ebf95ffb6030e3b8e5d8562c57cb36 Mon Sep 17 00:00:00 2001 From: Maksim Date: Fri, 16 Feb 2018 11:10:08 -0500 Subject: [PATCH] Pass response to 'editor.store(clb)' callback. Closes #876 --- src/editor/model/Editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index 40e61fa2eb..94dc911f37 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -346,8 +346,8 @@ module.exports = Backbone.Model.extend({ for (var el in obj) store[el] = obj[el]; }); - sm.store(store, () => { - clb && clb(); + sm.store(store, (res) => { + clb && clb(res); this.set('changesCount', 0); this.trigger('storage:store', store); });