We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b836f3 commit 7e43af4Copy full SHA for 7e43af4
src/Typings/Scene/Resources/__createChild.js
@@ -3,7 +3,16 @@ const yaml = require('js-yaml');
3
4
5
Scene.newF("__createChild", function(name, settings) {
6
+
7
+ // removing whitespace so it doesn't die
8
+ settings = settings.map( setting => setting.filter( miniSetting => {
9
+ return miniSetting.replace(/(\r\n|\n|\r)/gm, "").replace(/\s/, "").length > 1
10
+ }));
11
12
+ // actually loading the stuff
13
let thing = settings.filter( s => s[0].includes(name))[0];
14
let stuff = yaml.load(thing.join("\n"));
15
16
+ // returning the stuff typed
17
return new this.parent[name](stuff[name]);
18
});
0 commit comments