From 8bc49b9efb85d2624464c38855f38571ab1185af 2013-07-21 17:53:54 From: MinRK Date: 2013-07-21 17:53:54 Subject: [PATCH] remove any lingering raw_inputs on raw_input There should never be more than one, so ensure that is the case on creation. closes #3710 --- diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index caa49ec..8d14a75 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -545,7 +545,10 @@ var IPython = (function (IPython) { this.expand(); this.flush_clear_timeout(); var area = this.create_output_area(); - + + // disable any other raw_inputs, if they are left around + $("div.output_subarea.raw_input").remove(); + area.append( $("
") .addClass("box-flex1 output_subarea raw_input")