##// END OF EJS Templates
Added callbacks method to view
Jonathan Frederic -
Show More
@@ -231,17 +231,19 function(widget_manager, underscore, backbone){
231 }, this);
231 }, this);
232 },
232 },
233
233
234
234 callbacks: function(){
235 return this.widget_manager.callbacks(this);
236 }
235
237
236 render: function(){
238 render: function(){
237 // render the view. By default, this is only called the first time the view is created
239 // render the view. By default, this is only called the first time the view is created
238 },
240 },
239 send: function (content) {
241 send: function (content) {
240 this.model.send(content, this.widget_manager.callbacks(this));
242 this.model.send(content, this.callbacks());
241 },
243 },
242
244
243 touch: function () {
245 touch: function () {
244 this.model.save(this.model.changedAttributes(), {patch: true, callbacks: this.widget_manager.callbacks(this)});
246 this.model.save(this.model.changedAttributes(), {patch: true, callbacks: this.callbacks()});
245 },
247 },
246
248
247 });
249 });
General Comments 0
You need to be logged in to leave comments. Login now