From 122bd92d8267cf596dbf38c92e3b1c458a112c99 2014-03-13 23:29:28 From: Paul Ivanov Date: 2014-03-13 23:29:28 Subject: [PATCH] minor fixes to docs to address PR feedback --- diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index 579265c..c54d28a 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -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) { diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 2941a7a..b81e94a 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -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);