##// END OF EJS Templates
Merge pull request #1451 from minrk/headlevel...
Fernando Perez -
r6157:5c23e25f merge
parent child Browse files
Show More
@@ -296,6 +296,21 b' var IPython = (function (IPython) {'
296 HeadingCell.prototype = new TextCell();
296 HeadingCell.prototype = new TextCell();
297
297
298
298
299 HeadingCell.prototype.fromJSON = function (data) {
300 if (data.level != undefined){
301 this.level = data.level;
302 }
303 IPython.TextCell.prototype.fromJSON.apply(this, arguments);
304 };
305
306
307 HeadingCell.prototype.toJSON = function () {
308 var data = IPython.TextCell.prototype.toJSON.apply(this);
309 data.level = this.get_level();
310 return data;
311 };
312
313
299 HeadingCell.prototype.set_level = function (level) {
314 HeadingCell.prototype.set_level = function (level) {
300 this.level = level;
315 this.level = level;
301 if (this.rendered) {
316 if (this.rendered) {
General Comments 0
You need to be logged in to leave comments. Login now