aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Svg.js')
-rw-r--r--src/elements/Svg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Svg.js b/src/elements/Svg.js
index f96a5f8..7cec826 100644
--- a/src/elements/Svg.js
+++ b/src/elements/Svg.js
@@ -11,8 +11,8 @@ import Defs from './Defs.js'
import { globals } from '../utils/window.js'
export default class Svg extends Container {
- constructor (node) {
- super(nodeOrNew('svg', node), node)
+ constructor (node, attrs = node) {
+ super(nodeOrNew('svg', node), attrs)
this.namespace()
}