Show More
@@ -296,6 +296,21 b' var IPython = (function (IPython) {' | |||
|
296 | 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 | 314 | HeadingCell.prototype.set_level = function (level) { |
|
300 | 315 | this.level = level; |
|
301 | 316 | if (this.rendered) { |
General Comments 0
You need to be logged in to leave comments.
Login now