mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Return the viewlist from the update promise so that you can use it immediately.
The pattern is: viewlist.update(new_list).then(function(new_view_list) { ... })
This commit is contained in:
parent
307a320284
commit
88084db35d
@ -648,6 +648,7 @@ define(["widgets/js/manager",
|
||||
that._models = new_models.slice();
|
||||
return Promise.all(added_views, function(added) {
|
||||
that.views = that.views.slice(0,first_removed).concat(added);
|
||||
return that.views;
|
||||
});
|
||||
});
|
||||
return this.state_change;
|
||||
|
Loading…
x
Reference in New Issue
Block a user