Skip to content

Commit 5b07a48

Browse files
committed
Save program in 'every'
1 parent acf9d49 commit 5b07a48

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

dist/easycoder-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,10 @@ const EasyCoder_Core = {
624624
const command = program[program.pc];
625625
const cb = command.pc + 2;
626626
const rate = program.getValue(command.rate) * command.multiplier;
627-
setInterval(function() { program.run(cb) }, rate);
627+
const theProgram = program;
628+
setInterval(function() {
629+
theProgram.run(cb);
630+
}, rate);
628631
return command.pc + 1;
629632
}
630633
},
@@ -8635,7 +8638,7 @@ const EasyCoder = {
86358638
}
86368639
},
86378640
};
8638-
EasyCoder.version = `2.7.10`;
8641+
EasyCoder.version = `2.7.11`;
86398642
EasyCoder.timestamp = Date.now();
86408643
console.log(`EasyCoder loaded; waiting for page`);
86418644

js/easycoder/Core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,10 @@ const EasyCoder_Core = {
624624
const command = program[program.pc];
625625
const cb = command.pc + 2;
626626
const rate = program.getValue(command.rate) * command.multiplier;
627-
setInterval(function() { program.run(cb) }, rate);
627+
const theProgram = program;
628+
setInterval(function() {
629+
theProgram.run(cb);
630+
}, rate);
628631
return command.pc + 1;
629632
}
630633
},

js/easycoder/EasyCoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `2.7.10`;
1+
EasyCoder.version = `2.7.11`;
22
EasyCoder.timestamp = Date.now();
33
console.log(`EasyCoder loaded; waiting for page`);
44

0 commit comments

Comments
 (0)