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 ws_url = data.ws_url;
var early = data.early; var early = data.early;
var msg; var msg;
console.log(early);
if (!early) { if (!early) {
knw.set_message('Reconnecting WebSockets', 1000); knw.set_message('Reconnecting WebSockets', 1000);
setTimeout(function () { setTimeout(function () {

View File

@ -111,7 +111,6 @@ var IPython = (function (IPython) {
}, function (cell) { }, function (cell) {
that.cancel_stick(); that.cancel_stick();
that.showInPager(cell); that.showInPager(cell);
that._cmfocus();
}]; }];
// call after all the tabs function above have bee call to clean their effects // call after all the tabs function above have bee call to clean their effects
// if necessary // if necessary
@ -136,7 +135,6 @@ var IPython = (function (IPython) {
'silent': false 'silent': false
}); });
this.remove_and_cancel_tooltip(); this.remove_and_cancel_tooltip();
this._cmfocus();
} }
// grow the tooltip verticaly // grow the tooltip verticaly
@ -144,7 +142,6 @@ var IPython = (function (IPython) {
this.text.removeClass('smalltooltip'); this.text.removeClass('smalltooltip');
this.text.addClass('bigtooltip'); this.text.addClass('bigtooltip');
$('#expanbutton').hide('slow'); $('#expanbutton').hide('slow');
this._cmfocus();
} }
// deal with all the logic of hiding the tooltip // deal with all the logic of hiding the tooltip
@ -170,7 +167,6 @@ var IPython = (function (IPython) {
} }
this.cancel_pending(); this.cancel_pending();
this.reset_tabs_function(); this.reset_tabs_function();
this._cmfocus();
} }
// cancel autocall done after '(' for example. // cancel autocall done after '(' for example.
@ -357,17 +353,6 @@ var IPython = (function (IPython) {
this.text.scrollTop(0); 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; IPython.Tooltip = Tooltip;