Show More
@@ -171,6 +171,13 b' function(widget_manager, underscore, backbone){' | |||
|
171 | 171 | return model_json; |
|
172 | 172 | }, |
|
173 | 173 | |
|
174 | push: function(callbacks) { | |
|
175 | // Push this model's state to the back-end | |
|
176 | // | |
|
177 | // This invokes a Backbone.Sync. | |
|
178 | this.save(this.changedAttributes(), {patch: true, callbacks: callbacks}); | |
|
179 | }, | |
|
180 | ||
|
174 | 181 | _pack_models: function(value) { |
|
175 | 182 | // Replace models with model ids recursively. |
|
176 | 183 | if (value instanceof Backbone.Model) { |
@@ -288,8 +295,7 b' function(widget_manager, underscore, backbone){' | |||
|
288 | 295 | }, |
|
289 | 296 | |
|
290 | 297 | touch: function () { |
|
291 | // Associate recent model changes with this notebook. | |
|
292 | this.model.save(this.model.changedAttributes(), {patch: true, callbacks: this.callbacks()}); | |
|
298 | this.model.push(this.callbacks()); | |
|
293 | 299 | }, |
|
294 | 300 | |
|
295 | 301 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now