##// END OF EJS Templates
Fixed bug that prevented popup widget from displaying
Jonathan Frederic -
Show More
@@ -65,10 +65,6 define(["notebook/js/widgets/widget"], function(WidgetManager) {
65 65 // Called when view is rendered.
66 66 var that = this;
67 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 69 this.$el
74 70 .on("remove", function(){
@@ -159,6 +155,12 define(["notebook/js/widgets/widget"], function(WidgetManager) {
159 155 this.$el_to_style = this.$body;
160 156 this._shown_once = false;
161 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 166 hide: function() {
General Comments 0
You need to be logged in to leave comments. Login now