diff --git a/IPython/html/static/services/kernels/js/comm.js b/IPython/html/static/services/kernels/js/comm.js index 3351e42c4..91760aca1 100644 --- a/IPython/html/static/services/kernels/js/comm.js +++ b/IPython/html/static/services/kernels/js/comm.js @@ -45,6 +45,11 @@ var IPython = (function (IPython) { this.targets[target_name] = f; }; + CommManager.prototype.unregister_target = function (target_name, f) { + // Unregister a target function for a given target name + delete this.targets[target_name]; + }; + CommManager.prototype.register_comm = function (comm) { // Register a comm in the mapping this.comms[comm.comm_id] = comm;