mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Make state_change initialization more conventional
This commit is contained in:
parent
0164fd32ca
commit
a6b901fdd3
@ -604,11 +604,11 @@ define(["widgets/js/manager",
|
|||||||
// will be called in that context.
|
// will be called in that context.
|
||||||
|
|
||||||
this.initialize.apply(this, arguments);
|
this.initialize.apply(this, arguments);
|
||||||
this.state_change = Promise.resolve();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_.extend(ViewList.prototype, {
|
_.extend(ViewList.prototype, {
|
||||||
initialize: function(create_view, remove_view, context) {
|
initialize: function(create_view, remove_view, context) {
|
||||||
|
this.state_change = Promise.resolve();
|
||||||
this._handler_context = context || this;
|
this._handler_context = context || this;
|
||||||
this._models = [];
|
this._models = [];
|
||||||
this.views = [];
|
this.views = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user