##// END OF EJS Templates
Removed get_kernel method.
Jonathan Frederic -
Show More
@@ -185,7 +185,10 b''
185 // for the message. get_cell callbacks are registered for
185 // for the message. get_cell callbacks are registered for
186 // widget messages, so this block is actually checking to see if the
186 // widget messages, so this block is actually checking to see if the
187 // message was triggered by a widget.
187 // message was triggered by a widget.
188 var kernel = this.get_kernel();
188 var kernel = null;
189 if (this.comm_manager !== null) {
190 kernel = this.comm_manager.kernel;
191 }
189 if (kernel !== undefined && kernel !== null) {
192 if (kernel !== undefined && kernel !== null) {
190 var callbacks = kernel.get_callbacks_for_msg(msg_id);
193 var callbacks = kernel.get_callbacks_for_msg(msg_id);
191 if (callbacks !== undefined &&
194 if (callbacks !== undefined &&
@@ -247,15 +250,6 b''
247 };
250 };
248
251
249
252
250 WidgetManager.prototype.get_kernel = function () {
251 if (this.comm_manager === null) {
252 return null;
253 } else {
254 return this.comm_manager.kernel;
255 }
256 };
257
258
259 WidgetManager.prototype._handle_comm_open = function (comm, msg) {
253 WidgetManager.prototype._handle_comm_open = function (comm, msg) {
260 var widget_type_name = msg.content.target_name;
254 var widget_type_name = msg.content.target_name;
261 var widget_model = new this._model_types[widget_type_name](this, comm.comm_id, comm);
255 var widget_model = new this._model_types[widget_type_name](this, comm.comm_id, comm);
General Comments 0
You need to be logged in to leave comments. Login now