From 9877ef3e461973ff462e3ca8c9fda4f906597034 2014-01-16 10:57:15 From: Jonathan Frederic Date: 2014-01-16 10:57:15 Subject: [PATCH] remove on_create_widget and handle_create_widget callback --- diff --git a/IPython/html/static/notebook/js/widgetmanager.js b/IPython/html/static/notebook/js/widgetmanager.js index a71079a..3a775da 100644 --- a/IPython/html/static/notebook/js/widgetmanager.js +++ b/IPython/html/static/notebook/js/widgetmanager.js @@ -256,27 +256,10 @@ }; - WidgetManager.prototype.on_create_widget = function (callback) { - this._create_widget_callback = callback; - }; - - - WidgetManager.prototype._handle_create_widget = function (widget_model) { - if (this._create_widget_callback) { - try { - this._create_widget_callback(widget_model); - } catch (e) { - console.log("Exception in WidgetManager callback", e, widget_model); - } - } - }; - - WidgetManager.prototype._handle_comm_open = function (comm, msg) { var widget_type_name = msg.content.target_name; var widget_model = new this._model_types[widget_type_name](this, comm.comm_id, comm); this._models[comm.comm_id] = widget_model; // comm_id == model_id - this._handle_create_widget(widget_model); }; //--------------------------------------------------------------------