##// END OF EJS Templates
Fixed bug that prevented popup widget from displaying
Jonathan Frederic -
Show More
@@ -65,10 +65,6 b' define(["notebook/js/widgets/widget"], function(WidgetManager) {'
65 // Called when view is rendered.
65 // Called when view is rendered.
66 var that = this;
66 var that = this;
67 this.children={};
67 this.children={};
68 this.update_children([], this.model.get('_children'));
69 this.model.on('change:_children', function(model, value, options) {
70 this.update_children(model.previous('_children'), value);
71 }, this);
72
68
73 this.$el
69 this.$el
74 .on("remove", function(){
70 .on("remove", function(){
@@ -159,6 +155,12 b' define(["notebook/js/widgets/widget"], function(WidgetManager) {'
159 this.$el_to_style = this.$body;
155 this.$el_to_style = this.$body;
160 this._shown_once = false;
156 this._shown_once = false;
161 this.popped_out = true;
157 this.popped_out = true;
158
159 this.update_children([], this.model.get('_children'));
160 this.model.on('change:_children', function(model, value, options) {
161 this.update_children(model.previous('_children'), value);
162 }, this);
163 this.update();
162 },
164 },
163
165
164 hide: function() {
166 hide: function() {
General Comments 0
You need to be logged in to leave comments. Login now