mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
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:
parent
b72ac07c3d
commit
794ef18920
@ -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');
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user