summaryrefslogtreecommitdiffstats
path: root/src/utils/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/methods.js')
-rw-r--r--src/utils/methods.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/utils/methods.js b/src/utils/methods.js
index 527e7b7..bc05a70 100644
--- a/src/utils/methods.js
+++ b/src/utils/methods.js
@@ -1,5 +1,4 @@
const methods = {}
-const constructors = {}
const names = []
export function registerMethods (name, m) {
@@ -11,8 +10,8 @@ export function registerMethods (name, m) {
}
if (typeof name === 'object') {
- for (let [ _name, _m ] of Object.entries(name)) {
- registerMethods(_name, _m)
+ for (let _name in name) {
+ registerMethods(_name, name[_name])
}
return
}
@@ -32,11 +31,3 @@ export function getMethodNames () {
export function addMethodNames (_names) {
names.push(..._names)
}
-
-export function registerConstructor (name, setup) {
- constructors[name] = setup
-}
-
-export function getConstructor (name) {
- return constructors[name] ? { setup: constructors[name], name } : {}
-}