add unregister_target to CommManagers

This commit is contained in:
MinRK 2013-10-11 09:03:33 +02:00
parent 90f67d3bbe
commit 8bcf95404d

View File

@ -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;