Skip to content

Commit

Permalink
Fixed text cell rendering bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisonbg committed Aug 9, 2011
1 parent 4fb6f61 commit 8bee5f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions IPython/frontend/html/notebook/static/js/textcell.js
Expand Up @@ -100,7 +100,7 @@ var IPython = (function (IPython) {
};


TextCell.prototype.get_rendered = function(text) {
TextCell.prototype.get_rendered = function() {
return this.element.find('div.text_cell_render').html();
};

Expand Down Expand Up @@ -129,13 +129,16 @@ var IPython = (function (IPython) {


TextCell.prototype.fromJSON = function (data) {
console.log(data);
if (data.cell_type === this.cell_type) {
if (data.source !== undefined) {
this.set_source(data.source);
this.set_rendered(data.rendered);
this.set_rendered(data.rendered || '');
this.rendered = false;
this.render();
};
};
}
};


TextCell.prototype.toJSON = function () {
Expand Down

0 comments on commit 8bee5f8

Please sign in to comment.