Skip to content

Commit

Permalink
Pass response to 'editor.store(clb)' callback. Closes GrapesJS#876
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtacco committed Feb 21, 2018
1 parent 4079db9 commit dab30fd
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 dab30fd

Please sign in to comment.