Show More
@@ -271,7 +271,7 b' function(widget_manager, underscore, backbone){' | |||||
271 | // TODO: make changes more granular (e.g., trigger on visible:change) |
|
271 | // TODO: make changes more granular (e.g., trigger on visible:change) | |
272 | this.model.on('change', this.update, this); |
|
272 | this.model.on('change', this.update, this); | |
273 | this.model.on('msg:custom', this.on_msg, this); |
|
273 | this.model.on('msg:custom', this.on_msg, this); | |
274 |
WidgetView |
|
274 | WidgetView.initialize.apply(this, arguments); | |
275 | }, |
|
275 | }, | |
276 |
|
276 | |||
277 | on_msg: function(msg) { |
|
277 | on_msg: function(msg) { |
@@ -64,7 +64,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
64 | this.$label.show(); |
|
64 | this.$label.show(); | |
65 | } |
|
65 | } | |
66 | } |
|
66 | } | |
67 |
return IPython.DOMWidgetView. |
|
67 | return IPython.DOMWidgetView.update.apply(this); | |
68 | }, |
|
68 | }, | |
69 |
|
69 | |||
70 | }); |
|
70 | }); | |
@@ -105,7 +105,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
105 | this.$el.html(description); |
|
105 | this.$el.html(description); | |
106 | } |
|
106 | } | |
107 | } |
|
107 | } | |
108 |
return IPython.DOMWidgetView. |
|
108 | return IPython.DOMWidgetView.update.apply(this); | |
109 | }, |
|
109 | }, | |
110 |
|
110 | |||
111 | events: {"click button" : "handleClick"}, |
|
111 | events: {"click button" : "handleClick"}, |
@@ -49,7 +49,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
49 | this.$el.removeAttr('disabled'); |
|
49 | this.$el.removeAttr('disabled'); | |
50 | } |
|
50 | } | |
51 |
|
51 | |||
52 |
return IPython.DOMWidgetView. |
|
52 | return IPython.DOMWidgetView.update.apply(this); | |
53 | }, |
|
53 | }, | |
54 |
|
54 | |||
55 | events: { |
|
55 | events: { |
@@ -74,7 +74,7 b' define(["notebook/js/widgets/widget"], function(widget_manager) {' | |||||
74 | // Called when the model is changed. The model may have been |
|
74 | // Called when the model is changed. The model may have been | |
75 | // changed by another view or by a state update from the back-end. |
|
75 | // changed by another view or by a state update from the back-end. | |
76 | set_flex_properties(this, this.$el); |
|
76 | set_flex_properties(this, this.$el); | |
77 |
return IPython.DOMWidgetView. |
|
77 | return IPython.DOMWidgetView.update.apply(this); | |
78 | }, |
|
78 | }, | |
79 | }); |
|
79 | }); | |
80 |
|
80 | |||
@@ -258,7 +258,7 b' define(["notebook/js/widgets/widget"], function(widget_manager) {' | |||||
258 | this.show(); |
|
258 | this.show(); | |
259 | } |
|
259 | } | |
260 |
|
260 | |||
261 |
return IPython.DOMWidgetView. |
|
261 | return IPython.DOMWidgetView.update.apply(this); | |
262 | }, |
|
262 | }, | |
263 |
|
263 | |||
264 | _get_selector_element: function(selector) { |
|
264 | _get_selector_element: function(selector) { | |
@@ -277,7 +277,7 b' define(["notebook/js/widgets/widget"], function(widget_manager) {' | |||||
277 | return this.$window.find(selector.substring(6)); |
|
277 | return this.$window.find(selector.substring(6)); | |
278 | } |
|
278 | } | |
279 | } else { |
|
279 | } else { | |
280 |
return IPython.DOMWidgetView. |
|
280 | return IPython.DOMWidgetView._get_selector_element.apply(this, [selector]); | |
281 | } |
|
281 | } | |
282 | }, |
|
282 | }, | |
283 |
|
283 |
@@ -107,7 +107,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
107 | this.$label.show(); |
|
107 | this.$label.show(); | |
108 | } |
|
108 | } | |
109 | } |
|
109 | } | |
110 |
return IPython.DOMWidgetView. |
|
110 | return IPython.DOMWidgetView.update.apply(this); | |
111 | }, |
|
111 | }, | |
112 |
|
112 | |||
113 | // Handles: User input |
|
113 | // Handles: User input | |
@@ -168,7 +168,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
168 | this.$label.show(); |
|
168 | this.$label.show(); | |
169 | } |
|
169 | } | |
170 | } |
|
170 | } | |
171 |
return IPython.DOMWidgetView. |
|
171 | return IPython.DOMWidgetView.update.apply(this); | |
172 | }, |
|
172 | }, | |
173 |
|
173 | |||
174 |
|
174 | |||
@@ -260,7 +260,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
260 | this.$label.html(description); |
|
260 | this.$label.html(description); | |
261 | this.$label.show(); |
|
261 | this.$label.show(); | |
262 | } |
|
262 | } | |
263 |
return IPython.DOMWidgetView. |
|
263 | return IPython.DOMWidgetView.update.apply(this); | |
264 | }, |
|
264 | }, | |
265 |
|
265 | |||
266 | }); |
|
266 | }); |
@@ -47,7 +47,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
47 | } else { |
|
47 | } else { | |
48 | this.$el.removeAttr('height'); |
|
48 | this.$el.removeAttr('height'); | |
49 | } |
|
49 | } | |
50 |
return IPython.DOMWidgetView. |
|
50 | return IPython.DOMWidgetView.update.apply(this); | |
51 | }, |
|
51 | }, | |
52 |
|
52 | |||
53 | }); |
|
53 | }); |
@@ -106,7 +106,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
106 | this.$label.show(); |
|
106 | this.$label.show(); | |
107 | } |
|
107 | } | |
108 | } |
|
108 | } | |
109 |
return IPython.DOMWidgetView. |
|
109 | return IPython.DOMWidgetView.update.apply(this); | |
110 | }, |
|
110 | }, | |
111 |
|
111 | |||
112 | // Handles: User input |
|
112 | // Handles: User input | |
@@ -165,7 +165,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
165 | this.$label.show(); |
|
165 | this.$label.show(); | |
166 | } |
|
166 | } | |
167 | } |
|
167 | } | |
168 |
return IPython.DOMWidgetView. |
|
168 | return IPython.DOMWidgetView.update.apply(this); | |
169 | }, |
|
169 | }, | |
170 |
|
170 | |||
171 |
|
171 |
@@ -101,7 +101,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
101 | this.$label.show(); |
|
101 | this.$label.show(); | |
102 | } |
|
102 | } | |
103 | } |
|
103 | } | |
104 |
return IPython.DOMWidgetView. |
|
104 | return IPython.DOMWidgetView.update.apply(this); | |
105 | }, |
|
105 | }, | |
106 |
|
106 | |||
107 | // Handle when a value is clicked. |
|
107 | // Handle when a value is clicked. | |
@@ -193,7 +193,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
193 | this.$label.show(); |
|
193 | this.$label.show(); | |
194 | } |
|
194 | } | |
195 | } |
|
195 | } | |
196 |
return IPython.DOMWidgetView. |
|
196 | return IPython.DOMWidgetView.update.apply(this); | |
197 | }, |
|
197 | }, | |
198 |
|
198 | |||
199 | // Handle when a value is clicked. |
|
199 | // Handle when a value is clicked. | |
@@ -280,7 +280,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
280 | this.$label.show(); |
|
280 | this.$label.show(); | |
281 | } |
|
281 | } | |
282 | } |
|
282 | } | |
283 |
return IPython.DOMWidgetView. |
|
283 | return IPython.DOMWidgetView.update.apply(this); | |
284 | }, |
|
284 | }, | |
285 |
|
285 | |||
286 | // Handle when a value is clicked. |
|
286 | // Handle when a value is clicked. | |
@@ -364,7 +364,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
364 | this.$label.show(); |
|
364 | this.$label.show(); | |
365 | } |
|
365 | } | |
366 | } |
|
366 | } | |
367 |
return IPython.DOMWidgetView. |
|
367 | return IPython.DOMWidgetView.update.apply(this); | |
368 | }, |
|
368 | }, | |
369 |
|
369 | |||
370 | // Handle when a value is clicked. |
|
370 | // Handle when a value is clicked. |
@@ -77,7 +77,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
77 | } |
|
77 | } | |
78 | } |
|
78 | } | |
79 | } |
|
79 | } | |
80 |
return IPython.DOMWidgetView. |
|
80 | return IPython.DOMWidgetView.update.apply(this); | |
81 | }, |
|
81 | }, | |
82 |
|
82 | |||
83 | add_child_view: function(view) { |
|
83 | add_child_view: function(view) { | |
@@ -130,7 +130,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
130 |
|
130 | |||
131 | initialize: function() { |
|
131 | initialize: function() { | |
132 | this.containers = []; |
|
132 | this.containers = []; | |
133 |
IPython.DOMWidgetView |
|
133 | IPython.DOMWidgetView.initialize.apply(this, arguments); | |
134 | }, |
|
134 | }, | |
135 |
|
135 | |||
136 | render: function(){ |
|
136 | render: function(){ | |
@@ -181,7 +181,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
181 | this.select_page(selected_index); |
|
181 | this.select_page(selected_index); | |
182 | } |
|
182 | } | |
183 | } |
|
183 | } | |
184 |
return IPython.DOMWidgetView. |
|
184 | return IPython.DOMWidgetView.update.apply(this); | |
185 | }, |
|
185 | }, | |
186 |
|
186 | |||
187 | add_child_view: function(view) { |
|
187 | add_child_view: function(view) { |
@@ -31,7 +31,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
31 | // Called when the model is changed. The model may have been |
|
31 | // Called when the model is changed. The model may have been | |
32 | // changed by another view or by a state update from the back-end. |
|
32 | // changed by another view or by a state update from the back-end. | |
33 | this.$el.html(this.model.get('value')); |
|
33 | this.$el.html(this.model.get('value')); | |
34 |
return IPython.DOMWidgetView. |
|
34 | return IPython.DOMWidgetView.update.apply(this); | |
35 | }, |
|
35 | }, | |
36 |
|
36 | |||
37 | }); |
|
37 | }); | |
@@ -54,7 +54,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
54 | this.$el.html(this.model.get('value')); |
|
54 | this.$el.html(this.model.get('value')); | |
55 | MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$el.get(0)]); |
|
55 | MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$el.get(0)]); | |
56 |
|
56 | |||
57 |
return IPython.DOMWidgetView. |
|
57 | return IPython.DOMWidgetView.update.apply(this); | |
58 | }, |
|
58 | }, | |
59 |
|
59 | |||
60 | }); |
|
60 | }); | |
@@ -114,7 +114,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
114 | this.$label.show(); |
|
114 | this.$label.show(); | |
115 | } |
|
115 | } | |
116 | } |
|
116 | } | |
117 |
return IPython.DOMWidgetView. |
|
117 | return IPython.DOMWidgetView.update.apply(this); | |
118 | }, |
|
118 | }, | |
119 |
|
119 | |||
120 | events: {"keyup textarea": "handleChanging", |
|
120 | events: {"keyup textarea": "handleChanging", | |
@@ -173,7 +173,7 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||||
173 | this.$label.show(); |
|
173 | this.$label.show(); | |
174 | } |
|
174 | } | |
175 | } |
|
175 | } | |
176 |
return IPython.DOMWidgetView. |
|
176 | return IPython.DOMWidgetView.update.apply(this); | |
177 | }, |
|
177 | }, | |
178 |
|
178 | |||
179 | events: {"keyup input": "handleChanging", |
|
179 | events: {"keyup input": "handleChanging", |
General Comments 0
You need to be logged in to leave comments.
Login now