aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Pattern.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Pattern.js')
-rw-r--r--src/elements/Pattern.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Pattern.js b/src/elements/Pattern.js
index 99e8ded..72b7c59 100644
--- a/src/elements/Pattern.js
+++ b/src/elements/Pattern.js
@@ -6,8 +6,8 @@ import baseFind from '../modules/core/selector.js'
export default class Pattern extends Container {
// Initialize node
- constructor (node) {
- super(nodeOrNew('pattern', node), node)
+ constructor (node, attrs = node) {
+ super(nodeOrNew('pattern', node), attrs)
}
// Return the fill id