##// END OF EJS Templates
Added note in widget manager why Backbone.sync is there rather...
Jonathan Frederic -
Show More
@@ -25,10 +25,12 b''
25 "backbone",
25 "backbone",
26 ], function (underscore, backbone) {
26 ], function (underscore, backbone) {
27
27
28 // Backbone.sync method must be in widgetmanager.js file instead of
29 // widget.js so it can be overwritten for different contexts.
28 Backbone.sync = function (method, model, options, error) {
30 Backbone.sync = function (method, model, options, error) {
29 var result = model._handle_sync(method, options);
31 var result = model._handle_sync(method, options);
30 if (options.success) {
32 if (options.success) {
31 options.success(result);
33 options.success(result);
32 }
34 }
33 };
35 };
34
36
General Comments 0
You need to be logged in to leave comments. Login now