Adding missing var statements in notebook.js.

This commit is contained in:
Brian Granger 2012-05-09 20:03:55 -07:00
parent b274a86b8c
commit fd4ecebc9d

View File

@ -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