Skip to content

Commit 619f3e8

Browse files
authored
FIXES #4171 pen args mismatched inside note blocks (#4175)
* Update logo.js Declaring `arg` within the function to avoid sharing state. * Update logo.js no need of comment there.
1 parent f207a05 commit 619f3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/logo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,8 +1843,8 @@ class Logo {
18431843

18441844
const suppressOutput = tur.singer.suppressOutput;
18451845

1846-
let arg;
18471846
const __pen = (turtle, name, b, timeout) => {
1847+
let arg;
18481848
switch (name) {
18491849
case "penup":
18501850
case "pendown":

0 commit comments

Comments
 (0)