diff --git a/IPython/html/static/notebook/js/widgets/widget_container.js b/IPython/html/static/notebook/js/widgets/widget_container.js index 41ec0d4..c8f478a 100644 --- a/IPython/html/static/notebook/js/widgets/widget_container.js +++ b/IPython/html/static/notebook/js/widgets/widget_container.js @@ -22,9 +22,9 @@ define(["notebook/js/widgets/widget"], function(widget_manager) { this.$el .addClass('widget-container'); 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.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() }, @@ -65,9 +65,9 @@ define(["notebook/js/widgets/widget"], function(widget_manager) { // 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.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 diff --git a/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js b/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js index 3bd6ce3..bcaaeb4 100644 --- a/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js +++ b/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js @@ -25,9 +25,9 @@ define(["notebook/js/widgets/widget"], function(widget_manager){ .addClass('accordion'); this.containers = []; this.model_containers = {}; - this.update_children([], this.model.get('children')); - this.model.on('change:children', function(model, value, options) { - this.update_children(model.previous('children'), value); + this.update_children([], this.model.get('_children')); + this.model.on('change:_children', function(model, value, options) { + this.update_children(model.previous('_children'), value); }, this); }, @@ -151,9 +151,9 @@ define(["notebook/js/widgets/widget"], function(widget_manager){ .addClass('tab-content') .appendTo(this.$el); this.containers = []; - this.update_children([], this.model.get('children')); - this.model.on('change:children', function(model, value, options) { - this.update_children(model.previous('children'), value); + this.update_children([], this.model.get('_children')); + this.model.on('change:_children', function(model, value, options) { + this.update_children(model.previous('_children'), value); }, this); },