mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +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 () {
|
||||
var cells = this.get_cells();
|
||||
var ncells = cells.length;
|
||||
cell_array = new Array(ncells);
|
||||
var cell_array = new Array(ncells);
|
||||
for (var i=0; i<ncells; i++) {
|
||||
cell_array[i] = cells[i].toJSON();
|
||||
};
|
||||
data = {
|
||||
var data = {
|
||||
// Only handle 1 worksheet for now.
|
||||
worksheets : [{cells:cell_array}],
|
||||
metadata : this.metadata
|
||||
|
Loading…
Reference in New Issue
Block a user