mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Add logic to close tt when cell is unselected
This commit is contained in:
parent
95492b0f42
commit
e61b6aef47
@ -557,6 +557,18 @@ var IPython = (function (IPython) {
|
||||
return data;
|
||||
};
|
||||
|
||||
/**
|
||||
* handle cell level logic when a cell is unselected
|
||||
* @method unselect
|
||||
* @return is the action being taken
|
||||
*/
|
||||
CodeCell.prototype.unselect = function () {
|
||||
var cont = Cell.prototype.unselect.apply(this);
|
||||
if (cont) {
|
||||
IPython.tooltip.close();
|
||||
}
|
||||
return cont;
|
||||
};
|
||||
|
||||
IPython.CodeCell = CodeCell;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user