File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ function setupTextarea(el, opts)
576576 }
577577 } ) ;
578578 } ) ;
579+ return editor ;
579580} ;
580581
581582
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ $(document).ready(function()
9090 var parent = $ ( this ) . parent ( ) ;
9191 var btnParent = parent . parent ( ) . children ( ".d_example_buttons" ) ;
9292 var outputDiv = parent . parent ( ) . children ( ".d_code_output" ) ;
93- setupTextarea ( this , {
94- parent : btnParent ,
95- outputDiv : outputDiv ,
96- stdin : false ,
97- args : false ,
98- transformOutput : wrapIntoMain ,
99- defaultOutput : "All tests passed" ,
100- keepCode : true ,
101- outputHeight : "auto"
102- } ) ;
93+ var editor = setupTextarea ( this , {
94+ parent : btnParent ,
95+ outputDiv : outputDiv ,
96+ stdin : false ,
97+ args : false ,
98+ transformOutput : wrapIntoMain ,
99+ defaultOutput : "All tests passed" ,
100+ keepCode : true ,
101+ outputHeight : "auto"
102+ } ) ;
103103 } ) ;
104104} ) ;
You can’t perform that action at this time.
0 commit comments