Merge pull request #4566 from ellisonbg/cell-type-fix

Fixing cell_type in CodeCell constructor.
Min RK 12 years ago
commit 85dc6867f9

@ -63,7 +63,6 @@ var IPython = (function (IPython) {
var CodeCell = function (kernel, options) {
this.kernel = kernel || null;
this.collapsed = false;
this.cell_type = "code";
// create all attributed in constructor function
// even if null for V8 VM optimisation
@ -82,6 +81,9 @@ var IPython = (function (IPython) {
IPython.Cell.apply(this,[options]);
// Attributes we want to override in this subclass.
this.cell_type = "code";
var that = this;
this.element.focusout(
function() { that.auto_highlight(); }

Loading…
Cancel
Save