Add logic to close tt when cell is unselected

This commit is contained in:
Jonathan Frederic 2014-03-10 15:26:04 -07:00
parent 95492b0f42
commit e61b6aef47

View File

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