Browse Source
Merge pull request #881 from maxtacco/dev Closes #876
Pass response to 'editor.store(clb)' callback. Closes #876
pull/883/merge
Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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); |
|
|
|
}); |
|
|
|
|