mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Adding missing var statements in notebook.js.
This commit is contained in:
parent
b274a86b8c
commit
fd4ecebc9d
@ -1013,11 +1013,11 @@ var IPython = (function (IPython) {
|
|||||||
Notebook.prototype.toJSON = function () {
|
Notebook.prototype.toJSON = function () {
|
||||||
var cells = this.get_cells();
|
var cells = this.get_cells();
|
||||||
var ncells = cells.length;
|
var ncells = cells.length;
|
||||||
cell_array = new Array(ncells);
|
var cell_array = new Array(ncells);
|
||||||
for (var i=0; i<ncells; i++) {
|
for (var i=0; i<ncells; i++) {
|
||||||
cell_array[i] = cells[i].toJSON();
|
cell_array[i] = cells[i].toJSON();
|
||||||
};
|
};
|
||||||
data = {
|
var data = {
|
||||||
// Only handle 1 worksheet for now.
|
// Only handle 1 worksheet for now.
|
||||||
worksheets : [{cells:cell_array}],
|
worksheets : [{cells:cell_array}],
|
||||||
metadata : this.metadata
|
metadata : this.metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user