aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 14:51:34 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 14:51:34 +0100
commitbf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245 (patch)
tree0614edfac92e0ab9ff44144b79aa5802211ef5e0 /src/modules/core
parent334d9c73c2f74679a93b1d7b3e39b614f6444faa (diff)
downloadsvg.js-bf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245.tar.gz
svg.js-bf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245.zip
remove native() methods, add methods of types directly to elemenet
Diffstat (limited to 'src/modules/core')
-rw-r--r--src/modules/core/parser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/core/parser.js b/src/modules/core/parser.js
index ccbbc54..1ff2380 100644
--- a/src/modules/core/parser.js
+++ b/src/modules/core/parser.js
@@ -1,10 +1,10 @@
-import Doc from '../../elements/Doc.js'
import { globals } from '../../utils/window.js'
+import { makeInstance } from '../../utils/adopter.js'
export default function parser () {
// Reuse cached element if possible
if (!parser.nodes) {
- let svg = new Doc().size(2, 0)
+ let svg = makeInstance().size(2, 0)
svg.node.cssText = [
'opacity: 0',
'position: absolute',