Skip to content

Commit 552db83

Browse files
committed
New 'vfx' plugin
1 parent 165f5c8 commit 552db83

38 files changed

+1339
-786
lines changed

easycoder/easycoder-min.js

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

easycoder/easycoder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ const EasyCoder_Compiler = {
288288
// console.log(`Compile ${token}`);
289289
this.mark();
290290
for (const domainName of Object.keys(this.domain)) {
291-
// console.log(`Try domain ${domainName} for token ${token}`);
291+
// console.log(`Try domain ${domainName} for token ${token}`);
292292
const domain = this.domain[domainName];
293293
if (domain) {
294294
const handler = domain.getHandler(token);
@@ -3497,6 +3497,8 @@ const EasyCoder = {
34973497
core: EasyCoder_Core
34983498
},
34993499

3500+
elementId: 0,
3501+
35003502
runtimeError: function (lino, message) {
35013503
this.lino = lino;
35023504
this.reportError({

easycoder/plugins.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const EasyCoder_Plugins = {
1616
* When all the plugins have been added, EasyCoder starts up.
1717
*/
1818

19-
setPluginCount(5); // *** IMPORTANT *** the number of plugins you will be adding
19+
setPluginCount(6); // *** IMPORTANT *** the number of plugins you will be adding
2020

2121
getPlugin(`browser`,
2222
`/easycoder/plugins/browser.js`,
@@ -48,6 +48,12 @@ const EasyCoder_Plugins = {
4848
addPlugin(`showdown`, EasyCoder_Showdown);
4949
});
5050

51+
getPlugin(`vfx`,
52+
`/easycoder/plugins/vfx.js`,
53+
function () {
54+
addPlugin(`vfx`, EasyCoder_VFX);
55+
});
56+
5157
},
5258

5359
getLocalPlugin: (path, name, getPlugin, addPlugin, callback) => {
@@ -110,4 +116,4 @@ const EasyCoder_Plugins = {
110116
rest: () => {
111117
return `rest.php`;
112118
}
113-
};
119+
};

easycoder/plugins/anagrams.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const EasyCoder_Anagrams = {
3232
}
3333
},
3434

35-
getHandler: () => {},
35+
getHandler: () => {
36+
return null;
37+
},
3638

3739
condition: {
3840

easycoder/plugins/aws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const EasyCoder_AWS = {
198198
case `aws`:
199199
return EasyCoder_AWS.AWS;
200200
default:
201-
return false;
201+
return null;
202202
}
203203
},
204204

0 commit comments

Comments
 (0)