File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ function buildCanvas() {
337337 drawTree ( ctx , globalTree , canvas . width , scale ) ;
338338 updateTraversals ( globalTree ) ;
339339 }
340+
341+ insertNumber . value = "" ;
340342 } , false ) ;
341343
342344 removeNumberForm . addEventListener ( "submit" , function ( ) {
@@ -348,6 +350,8 @@ function buildCanvas() {
348350 drawTree ( ctx , globalTree , canvas . width , scale ) ;
349351 updateTraversals ( globalTree ) ;
350352 }
353+
354+ removeNumber . value = "" ;
351355 } , false ) ;
352356
353357 randomNumberForm . addEventListener ( "submit" , function ( ) {
@@ -374,6 +378,8 @@ function buildCanvas() {
374378 drawTree ( ctx , tree , canvas . width , scale ) ;
375379 updateTraversals ( tree ) ;
376380 }
381+
382+ randomNumber . value = "" ;
377383 } , false ) ;
378384 }
379385}
You can’t perform that action at this time.
0 commit comments