get cell correctly in nested context

fix some extensions like live_reveal

the .not('.cell .cell') part prevent the potential selection of DOM
elelment that would have the class cell from any output. In each branch
of the dom we thus select the first decendent node that have the class
'.cell'.
This commit is contained in:
Bussonnier Matthias 2014-11-25 11:36:00 +01:00
parent b72ac07c3d
commit 794ef18920

View File

@ -379,7 +379,7 @@ define([
* @return {jQuery} A selector of all cell elements
*/
Notebook.prototype.get_cell_elements = function () {
return this.container.children("div.cell");
return this.container.find(".cell").not('.cell .cell');
};
/**