From ce9e7a7d24c45e5111d43473bdd8a1a359b1849d 2013-02-10 16:23:10 From: Matthias BUSSONNIER Date: 2013-02-10 16:23:10 Subject: [PATCH] fix default empty option --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 5a5af40..2fb097e 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -36,6 +36,7 @@ var IPython = (function (IPython) { * @param [options.cm_config] {object} config to pass to CodeMirror */ var CodeCell = function (kernel, options) { + var options = options || {} this.kernel = kernel || null; this.code_mirror = null; this.input_prompt_number = null;