Matthias BUSSONNIER 12 years ago
parent c007debe3a
commit d7cc8dcf8d

@ -6,6 +6,7 @@ define([
'jquery',
'base/js/utils',
], function(IPython, $, utils) {
// TODO: remove IPython dependency here
"use strict";
// monkey patch CM to be able to syntax highlight cell magics
@ -556,7 +557,7 @@ define([
this.code_mirror.setOption('mode', default_mode);
};
// Backwards compatability.
// Backwards compatibility.
IPython.Cell = Cell;
return {'Cell': Cell};

@ -16,6 +16,9 @@ define([
// events: $(Events) instance
// cell: Cell instance
// notebook: Notebook instance
//
// TODO: This leaks, when cell are deleted
// There is still a reference to each celltoolbars.
CellToolbar._instances.push(this);
this.notebook = options.notebook;
this.events = options.events;

Loading…
Cancel
Save