From c8996c4b1379e1d7904fb65ef8a64f205b1fcbfa 2014-01-25 00:36:23 From: Jonathan Frederic Date: 2014-01-25 00:36:23 Subject: [PATCH] Fixed bug that prevented popup widget from displaying --- diff --git a/IPython/html/static/notebook/js/widgets/widget_container.js b/IPython/html/static/notebook/js/widgets/widget_container.js index 1b3acb5..199d704 100644 --- a/IPython/html/static/notebook/js/widgets/widget_container.js +++ b/IPython/html/static/notebook/js/widgets/widget_container.js @@ -65,10 +65,6 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) { // Called when view is rendered. var that = this; this.children={}; - this.update_children([], this.model.get('_children')); - this.model.on('change:_children', function(model, value, options) { - this.update_children(model.previous('_children'), value); - }, this); this.$el .on("remove", function(){ @@ -159,6 +155,12 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) { this.$el_to_style = this.$body; this._shown_once = false; this.popped_out = true; + + this.update_children([], this.model.get('_children')); + this.model.on('change:_children', function(model, value, options) { + this.update_children(model.previous('_children'), value); + }, this); + this.update(); }, hide: function() {