##// END OF EJS Templates
Adding missing var statements in notebook.js.
Brian Granger -
Show More
@@ -1013,11 +1013,11 b' var IPython = (function (IPython) {'
1013 Notebook.prototype.toJSON = function () {
1013 Notebook.prototype.toJSON = function () {
1014 var cells = this.get_cells();
1014 var cells = this.get_cells();
1015 var ncells = cells.length;
1015 var ncells = cells.length;
1016 cell_array = new Array(ncells);
1016 var cell_array = new Array(ncells);
1017 for (var i=0; i<ncells; i++) {
1017 for (var i=0; i<ncells; i++) {
1018 cell_array[i] = cells[i].toJSON();
1018 cell_array[i] = cells[i].toJSON();
1019 };
1019 };
1020 data = {
1020 var data = {
1021 // Only handle 1 worksheet for now.
1021 // Only handle 1 worksheet for now.
1022 worksheets : [{cells:cell_array}],
1022 worksheets : [{cells:cell_array}],
1023 metadata : this.metadata
1023 metadata : this.metadata
General Comments 0
You need to be logged in to leave comments. Login now