fix print view

construct a completer only if the class exist
otherwise print view won't load.
This commit is contained in:
Matthias BUSSONNIER 2012-04-15 13:11:27 +02:00 committed by Brian Granger
parent 507a66235b
commit 068a60a8b7

View File

@ -47,8 +47,12 @@ var IPython = (function (IPython) {
this.element = cell;
this.collapse();
// construct a completer
// construct a completer only if class exist
// otherwise no print view
if (IPython.Completer != undefined )
{
this.completer = new IPython.Completer(this);
}
};
CodeCell.prototype.handle_codemirror_keyevent = function (editor, event) {