Skip to content

Commit 896f1da

Browse files
committed
Merge pull request #266 from SylvainCorlay/model_constructor
WidgetModel.__super__.constructor should be called last
2 parents fc6844f + f50d51d commit 896f1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipywidgets/static/widgets/js/widget.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ define(["./utils",
5252
* An ID unique to this model.
5353
* comm : Comm instance (optional)
5454
*/
55-
WidgetModel.__super__.constructor.apply(this);
5655
this.widget_manager = widget_manager;
5756
this.state_change = Promise.resolve();
5857
this._buffered_state_diff = {};
@@ -99,6 +98,7 @@ define(["./utils",
9998
widget_manager.notebook.events.on('kernel_restarting.Kernel', died);
10099
widget_manager.notebook.events.on('kernel_dead.Kernel', died);
101100
}
101+
WidgetModel.__super__.constructor.apply(this);
102102
},
103103

104104
send: function (content, callbacks, buffers) {

0 commit comments

Comments
 (0)