From 01fdc8cb1b4b3f67c71bf3f445051e52494fa69a 2014-07-28 19:41:57 From: Matthias BUSSONNIER Date: 2014-07-28 19:41:57 Subject: [PATCH] a few todo --- diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index d5f7946..7769fea 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -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}; diff --git a/IPython/html/static/notebook/js/celltoolbar.js b/IPython/html/static/notebook/js/celltoolbar.js index 05a9cfc..b7215eb 100644 --- a/IPython/html/static/notebook/js/celltoolbar.js +++ b/IPython/html/static/notebook/js/celltoolbar.js @@ -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;