Skip to content

Commit 2ce2704

Browse files
committed
Version 2.5.5 Fix problem with exit()
1 parent 8d218e9 commit 2ce2704

File tree

7 files changed

+101
-88
lines changed

7 files changed

+101
-88
lines changed

easycoder/easycoder-min.js

Lines changed: 83 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

easycoder/easycoder.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,12 @@ const EasyCoder_Core = {
959959
},
960960

961961
run: program => {
962+
let parent = EasyCoder.scripts[program.parent];
962963
program.exit();
964+
if (parent) {
965+
parent.run(parent.nextPc);
966+
parent.nextPc = 0;
967+
}
963968
return 0;
964969
}
965970
},
@@ -4248,7 +4253,7 @@ const EasyCoder_Value = {
42484253
return value;
42494254
}
42504255
};
4251-
EasyCoder.version = `2.5.4`;
4256+
EasyCoder.version = `2.5.5`;
42524257
EasyCoder.timestamp = Date.now();
42534258
console.log(`EasyCoder loaded; waiting for page`);
42544259

js/EasyCoder-Cordova.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `2.5.2`;
1+
EasyCoder.version = `2.5.5`;
22
EasyCoder.timestamp = Date.now();
33

44
const app = {

js/EasyCoder.js

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

js/easycoder/Core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,12 @@ const EasyCoder_Core = {
575575
},
576576

577577
run: program => {
578+
let parent = EasyCoder.scripts[program.parent];
578579
program.exit();
580+
if (parent) {
581+
parent.run(parent.nextPc);
582+
parent.nextPc = 0;
583+
}
579584
return 0;
580585
}
581586
},

server/easycoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: EasyCoder
44
* Plugin URI: https://easycoder.software
55
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
6-
* Version: 2.5.4
6+
* Version: 2.5.5
77
* Author: EasyCoder Software
88
* Author URI: https://easycoder.software
99
*/
@@ -16,7 +16,7 @@
1616
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
1717
function easycoder_enqueue_script() {
1818
wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ )
19-
. 'easycoder-min.js', array(), '2.5.4');
19+
. 'easycoder-min.js', array(), '2.5.5');
2020
}
2121

2222
// Set up default plugin and REST scripts

server/readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht
5454

5555
== Changelog ==
5656

57+
= 2.5.5 12-dec-2019 =
58+
* Fix problems with exit(); replace program with name in objects
59+
5760
= 2.5.4 10-dec-2019 =
5861
* Fixed bug in parent script handling
5962

0 commit comments

Comments
 (0)