##// END OF EJS Templates
Fix, only return views that are direct children of the cell
Jonathan Frederic -
Show More
@@ -344,8 +344,14 define([
344 344 for (var id in model.views) {
345 345 if (model.views.hasOwnProperty(id)) {
346 346 var view = model.views[id];
347 var cell_index = that.notebook.find_cell_index(view.options.cell);
348 state[model_id].views.push(cell_index);
347 var cell = view.options.cell;
348
349 // Only store the cell reference if this view is a top level
350 // child of the cell.
351 if (cell.widget_views.indexOf(view) != -1) {
352 var cell_index = that.notebook.find_cell_index(cell);
353 state[model_id].views.push(cell_index);
354 }
349 355 }
350 356 }
351 357 }
General Comments 0
You need to be logged in to leave comments. Login now