##// END OF EJS Templates
Remove unused code and debugging statements
Jason Grout -
Show More
@@ -46,7 +46,6 b' function(widget_manager, underscore, backbone){'
46 46
47 47
48 48 send: function (content, callbacks) {
49 console.log('send',content, callbacks);
50 49 if (this.comm !== undefined) {
51 50 var data = {method: 'custom', custom_content: content};
52 51 this.comm.send(data, callbacks);
@@ -172,7 +171,6 b' function(widget_manager, underscore, backbone){'
172 171 // Build a callback dict.
173 172 cell_callbacks: function (cell) {
174 173 var callbacks = {};
175 console.log('cell_callbacks A', cell);
176 174 if (cell === undefined) {
177 175 // Used the last modified view as the sender of the message. This
178 176 // will insure that any python code triggered by the sent message
@@ -184,7 +182,6 b' function(widget_manager, underscore, backbone){'
184 182 cell = null;
185 183 }
186 184 }
187 console.log('cell_callbacks B', cell);
188 185 if (cell !== null) {
189 186
190 187 // Try to get output handlers
@@ -215,7 +212,6 b' function(widget_manager, underscore, backbone){'
215 212 },
216 213 };
217 214 }
218 console.log('constructed callbacks for',cell);
219 215 return callbacks;
220 216 },
221 217 });
@@ -231,12 +231,6 b' define(["notebook/js/widgets/base"], function(widget_manager) {'
231 231 return IPython.WidgetView.prototype.update.call(this);
232 232 },
233 233
234 add_child_view: function(attr, view) {
235 if (attr==='children') {
236 this.$body.append(view.$el);
237 }
238 },
239
240 234 _get_selector_element: function(selector) {
241 235
242 236 // Since the modal actually isn't within the $el in the DOM, we need to extend
@@ -70,7 +70,6 b' define(["notebook/js/widgets/base"], function(widget_manager){'
70 70 this.$slider.slider('option', 'orientation', orientation);
71 71 value = this.model.get('value');
72 72 this.$slider.slider('option', 'value', value);
73 console.log('updating value',value)
74 73
75 74 // Use the right CSS classes for vertical & horizontal sliders
76 75 if (orientation=='vertical') {
@@ -110,7 +109,6 b' define(["notebook/js/widgets/base"], function(widget_manager){'
110 109 events: { "slide" : "handleSliderChange" },
111 110 handleSliderChange: function(e, ui) {
112 111 this.model.set('value', ui.value);
113 console.log('triggered value change', ui.value, this.model);
114 112 this.touch();
115 113 },
116 114 });
@@ -108,7 +108,6 b' define(["notebook/js/widgets/base"], function(widget_manager){'
108 108 },
109 109
110 110 render: function(){
111 console.log('rendering tabs', this);
112 111 var uuid = 'tabs'+IPython.utils.uuid();
113 112 var that = this;
114 113 this.$tabs = $('<div />', {id: uuid})
@@ -70,9 +70,6 b' class BaseWidget(LoggingConfigurable):'
70 70 self._msg_callbacks = []
71 71 super(BaseWidget, self).__init__(**kwargs)
72 72
73 # Register after init to allow default values to be specified
74 # TODO: register three different handlers, one for each list, and abstract out the common parts
75 #print self.keys, self._children_attr, self._children_lists_attr
76 73 self.on_trait_change(self._handle_property_changed, self.keys)
77 74 Widget._handle_widget_constructed(self)
78 75
@@ -24,7 +24,6 b' class ContainerWidget(Widget):'
24 24 default_view_name = Unicode('ContainerView')
25 25
26 26 children = []#List(Instance('IPython.html.widgets.widget.Widget'))
27 _children_lists_attr = List(Unicode, ['children'])
28 27
29 28 # Keys, all private and managed by helper methods. Flexible box model
30 29 # classes...
@@ -30,7 +30,6 b' class MulticontainerWidget(Widget):'
30 30 selected_index = Int(0)
31 31
32 32 children = []#List(Instance('IPython.html.widgets.widget.Widget'))
33 _children_lists_attr = List(Unicode, ['children'])
34 33
35 34 # Public methods
36 35 def set_title(self, index, title):
General Comments 0
You need to be logged in to leave comments. Login now