Permalink
Browse files

Fixed text cell rendering bug.

  • Loading branch information...
1 parent 4fb6f61 commit 8bee5f803f756f5d39fa175213afadaa4a3a7886 @ellisonbg ellisonbg committed Aug 9, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 IPython/frontend/html/notebook/static/js/textcell.js
@@ -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();
};
@@ -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 () {

0 comments on commit 8bee5f8

Please sign in to comment.