mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +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;
|
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) {
|
CommManager.prototype.register_comm = function (comm) {
|
||||||
// Register a comm in the mapping
|
// Register a comm in the mapping
|
||||||
this.comms[comm.comm_id] = comm;
|
this.comms[comm.comm_id] = comm;
|
||||||
|
Loading…
Reference in New Issue
Block a user