Skip to content

Commit

Permalink
Merge pull request GrapesJS#881 from maxtacco/dev Closes GrapesJS#876
Browse files Browse the repository at this point in the history
Pass response to 'editor.store(clb)' callback. Closes GrapesJS#876
  • Loading branch information
artf authored Feb 27, 2018
2 parents 4079db9 + dab30fd commit 49100b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/model/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 49100b2

Please sign in to comment.