From 460d3027cedcfcaee4159b5aac94fa5e4cc73ba3 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 12 Sep 2016 15:18:12 +0200 Subject: [PATCH] merge TextCell options_default into MarkdownCell, RawCell --- notebook/static/notebook/js/textcell.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/notebook/static/notebook/js/textcell.js b/notebook/static/notebook/js/textcell.js index 7900a9783..fdb7e48ce 100644 --- a/notebook/static/notebook/js/textcell.js +++ b/notebook/static/notebook/js/textcell.js @@ -56,7 +56,6 @@ define([ this.notebook = options.notebook; // we cannot put this as a class key as it has handle to "this". - var config = utils.mergeopt(TextCell, this.config); Cell.apply(this, [{ config: options.config, keyboard_manager: options.keyboard_manager, @@ -279,8 +278,9 @@ define([ * notebook: Notebook instance */ options = options || {}; + var config_default = utils.mergeopt(TextCell, MarkdownCell.options_default); this.class_config = new configmod.ConfigWithDefaults(options.config, - MarkdownCell.options_default, 'MarkdownCell'); + config_default, 'MarkdownCell'); TextCell.apply(this, [$.extend({}, options, {config: options.config})]); this.cell_type = 'markdown'; @@ -526,8 +526,9 @@ define([ * notebook: Notebook instance */ options = options || {}; + var config_default = utils.mergeopt(TextCell, RawCell.options_default); this.class_config = new configmod.ConfigWithDefaults(options.config, - RawCell.options_default, 'RawCell'); + config_default, 'RawCell'); TextCell.apply(this, [$.extend({}, options, {config: options.config})]); this.cell_type = 'raw'; };