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

than the base.js (widget.js)
This commit is contained in:
Jonathan Frederic 2014-01-07 16:17:30 -08:00 committed by Jonathan Frederic
parent 3f3a7edd6a
commit 3254f338bb

View File

@ -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);
}
};