mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Added note in widget manager why Backbone.sync is there rather
than the base.js (widget.js)
This commit is contained in:
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…
Reference in New Issue
Block a user