Show More
@@ -6,6 +6,7 b' define([' | |||||
6 | 'jquery', |
|
6 | 'jquery', | |
7 | 'base/js/utils', |
|
7 | 'base/js/utils', | |
8 | ], function(IPython, $, utils) { |
|
8 | ], function(IPython, $, utils) { | |
|
9 | // TODO: remove IPython dependency here | |||
9 | "use strict"; |
|
10 | "use strict"; | |
10 |
|
11 | |||
11 | // monkey patch CM to be able to syntax highlight cell magics |
|
12 | // monkey patch CM to be able to syntax highlight cell magics | |
@@ -556,7 +557,7 b' define([' | |||||
556 | this.code_mirror.setOption('mode', default_mode); |
|
557 | this.code_mirror.setOption('mode', default_mode); | |
557 | }; |
|
558 | }; | |
558 |
|
559 | |||
559 |
// Backwards compat |
|
560 | // Backwards compatibility. | |
560 | IPython.Cell = Cell; |
|
561 | IPython.Cell = Cell; | |
561 |
|
562 | |||
562 | return {'Cell': Cell}; |
|
563 | return {'Cell': Cell}; |
@@ -16,6 +16,9 b' define([' | |||||
16 | // events: $(Events) instance |
|
16 | // events: $(Events) instance | |
17 | // cell: Cell instance |
|
17 | // cell: Cell instance | |
18 | // notebook: Notebook instance |
|
18 | // notebook: Notebook instance | |
|
19 | // | |||
|
20 | // TODO: This leaks, when cell are deleted | |||
|
21 | // There is still a reference to each celltoolbars. | |||
19 | CellToolbar._instances.push(this); |
|
22 | CellToolbar._instances.push(this); | |
20 | this.notebook = options.notebook; |
|
23 | this.notebook = options.notebook; | |
21 | this.events = options.events; |
|
24 | this.events = options.events; |
General Comments 0
You need to be logged in to leave comments.
Login now