mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fixed bug that prevent model.save() from being called on
widget models without views.
This commit is contained in:
parent
f286e1bb4d
commit
d35d8c242e
@ -124,7 +124,12 @@ define(["components/underscore/underscore-min",
|
||||
}
|
||||
|
||||
var data = {sync_method: method, sync_data: send_json};
|
||||
var output_area = this.last_modified_view.output_area;
|
||||
|
||||
var output_area = null;
|
||||
if (this.last_modified_view != undefined && this.last_modified_view != null) {
|
||||
output_area = this.last_modified_view.output_area;
|
||||
}
|
||||
|
||||
var callbacks = this._make_callbacks(output_area);
|
||||
this.comm.send(data, callbacks);
|
||||
this.pending_msgs++;
|
||||
|
Loading…
Reference in New Issue
Block a user