Show More
@@ -78,7 +78,7 b' define([' | |||||
78 | comm.close(); |
|
78 | comm.close(); | |
79 | that.unregister_comm(comm); |
|
79 | that.unregister_comm(comm); | |
80 | } |
|
80 | } | |
81 | }, console.error); |
|
81 | }, $.proxy(console.error, console)); | |
82 | }; |
|
82 | }; | |
83 |
|
83 | |||
84 | CommManager.prototype.comm_close = function (msg) { |
|
84 | CommManager.prototype.comm_close = function (msg) { |
@@ -66,7 +66,7 b' define([' | |||||
66 | dummy.replaceWith(view.$el); |
|
66 | dummy.replaceWith(view.$el); | |
67 | } |
|
67 | } | |
68 | view.trigger('displayed'); |
|
68 | view.trigger('displayed'); | |
69 | }, console.error); |
|
69 | }, $.proxy(console.error, console)); | |
70 | } |
|
70 | } | |
71 | }; |
|
71 | }; | |
72 |
|
72 | |||
@@ -208,7 +208,7 b' define([' | |||||
208 | // model_name: 'WidgetModel', |
|
208 | // model_name: 'WidgetModel', | |
209 | // widget_class: 'IPython.html.widgets.widget_int.IntSlider'}) |
|
209 | // widget_class: 'IPython.html.widgets.widget_int.IntSlider'}) | |
210 | // .then(function(model) { console.log('Create success!', model); }, |
|
210 | // .then(function(model) { console.log('Create success!', model); }, | |
211 | // console.error); |
|
211 | // $.proxy(console.error, console)); | |
212 | // |
|
212 | // | |
213 | // Parameters |
|
213 | // Parameters | |
214 | // ---------- |
|
214 | // ---------- |
@@ -107,7 +107,7 b' define(["widgets/js/manager",' | |||||
107 | unpacked_state[state_keys[i]] = promise_values[i]; |
|
107 | unpacked_state[state_keys[i]] = promise_values[i]; | |
108 | } |
|
108 | } | |
109 | WidgetModel.__super__.set.apply(this, [unpacked_state]); |
|
109 | WidgetModel.__super__.set.apply(this, [unpacked_state]); | |
110 | }, console.error); |
|
110 | }, $.proxy(console.error, console)); | |
111 | } finally { |
|
111 | } finally { | |
112 | this.state_lock = null; |
|
112 | this.state_lock = null; | |
113 | } |
|
113 | } |
@@ -84,7 +84,7 b' define([' | |||||
84 | that.after_displayed(function() { |
|
84 | that.after_displayed(function() { | |
85 | view.trigger('displayed'); |
|
85 | view.trigger('displayed'); | |
86 | }); |
|
86 | }); | |
87 | }, console.error); |
|
87 | }, $.proxy(console.error, console)); | |
88 | }, |
|
88 | }, | |
89 | }); |
|
89 | }); | |
90 |
|
90 |
@@ -125,7 +125,7 b' define([' | |||||
125 | that.after_displayed(function() { |
|
125 | that.after_displayed(function() { | |
126 | view.trigger('displayed'); |
|
126 | view.trigger('displayed'); | |
127 | }); |
|
127 | }); | |
128 | }, console.error); |
|
128 | }, $.proxy(console.error, console)); | |
129 | }, |
|
129 | }, | |
130 | }); |
|
130 | }); | |
131 |
|
131 | |||
@@ -219,7 +219,7 b' define([' | |||||
219 | that.after_displayed(function() { |
|
219 | that.after_displayed(function() { | |
220 | view.trigger('displayed'); |
|
220 | view.trigger('displayed'); | |
221 | }); |
|
221 | }); | |
222 | }, console.error); |
|
222 | }, $.proxy(console.error, console)); | |
223 | }, |
|
223 | }, | |
224 |
|
224 | |||
225 | update: function(options) { |
|
225 | update: function(options) { |
General Comments 0
You need to be logged in to leave comments.
Login now