aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.js')
-rw-r--r--src/tools.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools.js b/src/tools.js
index 898f016..14e19a3 100644
--- a/src/tools.js
+++ b/src/tools.js
@@ -1,5 +1,5 @@
-import {ns} from './namespaces.js'
-import {capitalize} from './helpers.js'
+import { ns } from './namespaces.js'
+import { getClass } from './adopter.js'
export function nodeOrNew (name, node) {
return node || makeNode(name)
@@ -39,6 +39,7 @@ export function invent (config) {
// Inherit prototype
if (config.inherit) {
+ /* eslint new-cap: "off" */
initializer.prototype = new config.inherit()
initializer.prototype.constructor = initializer
}
@@ -49,7 +50,7 @@ export function invent (config) {
}
// Attach construct method to parent
- if (config.construct) { extend(config.parent || Container, config.construct) }
+ if (config.construct) { extend(config.parent || getClass('Container'), config.construct) }
return initializer
}