diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 4d0ee16..722b0a1 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -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;