Added note in widget manager why Backbone.sync is there rather

than the base.js (widget.js)
pull/37/head
Jonathan Frederic 12 years ago committed by Jonathan Frederic
parent 3f3a7edd6a
commit 3254f338bb

@ -25,10 +25,12 @@
"backbone",
], function (underscore, backbone) {
// Backbone.sync method must be in widgetmanager.js file instead of
// widget.js so it can be overwritten for different contexts.
Backbone.sync = function (method, model, options, error) {
var result = model._handle_sync(method, options);
if (options.success) {
options.success(result);
options.success(result);
}
};

Loading…
Cancel
Save