mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
add unregister_target to CommManagers
This commit is contained in:
parent
90f67d3bbe
commit
8bcf95404d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user