Show More
@@ -22,9 +22,9 b' define(["notebook/js/widgets/widget"], function(widget_manager) {' | |||
|
22 | 22 | this.$el |
|
23 | 23 | .addClass('widget-container'); |
|
24 | 24 | this.children={}; |
|
25 | this.update_children([], this.model.get('children')); | |
|
26 | this.model.on('change:children', function(model, value, options) { | |
|
27 | this.update_children(model.previous('children'), value); | |
|
25 | this.update_children([], this.model.get('_children')); | |
|
26 | this.model.on('change:_children', function(model, value, options) { | |
|
27 | this.update_children(model.previous('_children'), value); | |
|
28 | 28 | }, this); |
|
29 | 29 | this.update() |
|
30 | 30 | }, |
@@ -65,9 +65,9 b' define(["notebook/js/widgets/widget"], function(widget_manager) {' | |||
|
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); | |
|
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 | 71 | }, this); |
|
72 | 72 | |
|
73 | 73 | this.$el |
@@ -25,9 +25,9 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||
|
25 | 25 | .addClass('accordion'); |
|
26 | 26 | this.containers = []; |
|
27 | 27 | this.model_containers = {}; |
|
28 | this.update_children([], this.model.get('children')); | |
|
29 | this.model.on('change:children', function(model, value, options) { | |
|
30 | this.update_children(model.previous('children'), value); | |
|
28 | this.update_children([], this.model.get('_children')); | |
|
29 | this.model.on('change:_children', function(model, value, options) { | |
|
30 | this.update_children(model.previous('_children'), value); | |
|
31 | 31 | }, this); |
|
32 | 32 | }, |
|
33 | 33 | |
@@ -151,9 +151,9 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||
|
151 | 151 | .addClass('tab-content') |
|
152 | 152 | .appendTo(this.$el); |
|
153 | 153 | this.containers = []; |
|
154 | this.update_children([], this.model.get('children')); | |
|
155 | this.model.on('change:children', function(model, value, options) { | |
|
156 | this.update_children(model.previous('children'), value); | |
|
154 | this.update_children([], this.model.get('_children')); | |
|
155 | this.model.on('change:_children', function(model, value, options) { | |
|
156 | this.update_children(model.previous('_children'), value); | |
|
157 | 157 | }, this); |
|
158 | 158 | }, |
|
159 | 159 |
General Comments 0
You need to be logged in to leave comments.
Login now