File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ $(document).ready(function() {
154154 $ ( '#executeBtn' ) . attr ( 'disabled' , false ) ;
155155 }
156156 else {
157- createVisualization ( traceData , pyInputCodeMirror . getValue ( ) ) ;
157+ createVisualization ( traceData , pyInputCodeMirror . getValue ( ) , $ ( '#pyOutputPane' ) ) ;
158158 }
159159 } ,
160160 "json" ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ var instrLimitReached = false;
6666
6767
6868
69- function createVisualization ( traceData , inputCode ) {
69+ function createVisualization ( traceData , inputCode , domRoot ) {
70+
71+
7072 // set gross globals, then let jQuery BBQ take care of the rest
7173 curTrace = traceData ;
7274 curInputCode = inputCode ;
@@ -1197,9 +1199,7 @@ function renderPyCodeOutput(codeStr) {
11971199 codeOutputLines . push ( n ) ;
11981200 } ) ;
11991201
1200- // re-create a pyCodeOutputDiv from scratch each time to prevent weird
1201- // scrolling bugs ... ugh hacky
1202- $ ( '#pyCodeOutputDivWrapper' ) . html ( '<div id="pyCodeOutputDiv"/>' ) ;
1202+ $ ( '#pyCodeOutputDiv' ) . empty ( ) ;
12031203
12041204
12051205 // maps codeOutputLines to both table columns
Original file line number Diff line number Diff line change 152152
153153< center >
154154
155- < div id ="pyCodeOutputDivWrapper ">
155+ < div id ="pyCodeOutputDiv ">
156156</ div >
157157
158158< div id ="editCodeLinkDiv ">
You can’t perform that action at this time.
0 commit comments