minor fixes to docs to address PR feedback

pull/37/head
Paul Ivanov 12 years ago
parent 469c70fd10
commit 67fd905421

@ -164,7 +164,7 @@ var IPython = (function (IPython) {
*
* @method handle_codemirror_keyevent
* @param {CodeMirror} editor - The codemirror instance bound to the cell
* @param {event} event -
* @param {event} event - key press event which either should or should not be handled by CodeMirror
* @return {Boolean} `true` if CodeMirror should ignore the event, `false` Otherwise
*/
Cell.prototype.handle_codemirror_keyevent = function (editor, event) {

@ -202,9 +202,9 @@ var IPython = (function (IPython) {
// is actually empty
IPython.tooltip.pending(that, true);
} else if ( tooltip_closed && event.which === keycodes.esc && event.type === 'keydown') {
// If tooltip is active, cancel it.
// The call to remove_and_cancel_tooltip above in L177 doesn't pass
// force=true. Because of this it won't actually close the tooltip
// If tooltip is active, cancel it. The call to
// remove_and_cancel_tooltip above doesn't pass, force=true.
// Because of this it won't actually close the tooltip
// if it is in sticky mode. Thus, we have to check again if it is open
// and close it with force=true.
if (!IPython.tooltip._hidden) {
@ -410,7 +410,7 @@ var IPython = (function (IPython) {
CodeCell.input_prompt_classical = function (prompt_value, lines_number) {
var ns;
if (prompt_value == undefined) {
if (prompt_value === undefined) {
ns = " ";
} else {
ns = encodeURIComponent(prompt_value);

Loading…
Cancel
Save