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