Minor changes.

* Removed Tooltip._cmfocus as it was doing nothing.
* Removed debug console.log in notification area.
This commit is contained in:
Brian E. Granger 2013-01-21 23:20:50 -08:00
parent 8698f6af46
commit 11d65e3bac
2 changed files with 0 additions and 16 deletions

View File

@ -122,7 +122,6 @@ var IPython = (function (IPython) {
var ws_url = data.ws_url;
var early = data.early;
var msg;
console.log(early);
if (!early) {
knw.set_message('Reconnecting WebSockets', 1000);
setTimeout(function () {

View File

@ -111,7 +111,6 @@ var IPython = (function (IPython) {
}, function (cell) {
that.cancel_stick();
that.showInPager(cell);
that._cmfocus();
}];
// call after all the tabs function above have bee call to clean their effects
// if necessary
@ -136,7 +135,6 @@ var IPython = (function (IPython) {
'silent': false
});
this.remove_and_cancel_tooltip();
this._cmfocus();
}
// grow the tooltip verticaly
@ -144,7 +142,6 @@ var IPython = (function (IPython) {
this.text.removeClass('smalltooltip');
this.text.addClass('bigtooltip');
$('#expanbutton').hide('slow');
this._cmfocus();
}
// deal with all the logic of hiding the tooltip
@ -170,7 +167,6 @@ var IPython = (function (IPython) {
}
this.cancel_pending();
this.reset_tabs_function();
this._cmfocus();
}
// cancel autocall done after '(' for example.
@ -357,17 +353,6 @@ var IPython = (function (IPython) {
this.text.scrollTop(0);
}
// convenient funciton to have the correct code_mirror back into focus
Tooltip.prototype._cmfocus = function () {
var cm = this.code_mirror;
if (IPython.notebook !== undefined) {
if (cm == IPython.notebook.get_selected_cell()) {
setTimeout(function () {
cm.focus();
}, 50);
}
}
}
IPython.Tooltip = Tooltip;