aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/methods.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-30 13:19:58 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-30 13:19:58 +0100
commitf4531868a190af69c4ecdcf6d7be6d3fc59f5d46 (patch)
tree1fc76780ad6918ef7b6eb0e302a55f1b043d8bc5 /src/utils/methods.js
parentd64b964d21e1399b198e44555be68a12378053e7 (diff)
parentefc82b0eafa72902b35c2b22cd9e86bdbdd3edfb (diff)
downloadsvg.js-f4531868a190af69c4ecdcf6d7be6d3fc59f5d46.tar.gz
svg.js-f4531868a190af69c4ecdcf6d7be6d3fc59f5d46.zip
Merge branch '3.0.0' into 790-color-spaces
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 } : {}
-}