|
@@ -16,10 +16,7 @@ Currently Supported Components:
|
|
|
- rotate (Obtains angle, in degrees)
|
|
|
*/
|
|
|
|
|
|
-function jbox(tags=[]) {
|
|
|
- let config = {
|
|
|
- tags: tags,
|
|
|
- };
|
|
|
+export function jbox(tags=[]) {
|
|
|
return {
|
|
|
id: "jbox",
|
|
|
require: tags,
|
|
@@ -31,7 +28,7 @@ function jbox(tags=[]) {
|
|
|
jbox: "[[email protected]]",
|
|
|
comps: {},
|
|
|
};
|
|
|
- for (let tag in config.tags) {
|
|
|
+ for (let tag in tags) {
|
|
|
switch (tag) {
|
|
|
case "pos": {
|
|
|
j.comps["pos"] = {
|
|
@@ -61,4 +58,8 @@ function jbox(tags=[]) {
|
|
|
return j;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+export default () => {
|
|
|
+ return jbox
|
|
|
+}
|