summaryrefslogtreecommitdiffstats
path: root/src/elements/Gradient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Gradient.js')
-rw-r--r--src/elements/Gradient.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Gradient.js b/src/elements/Gradient.js
index cf8aeaa..cfa2950 100644
--- a/src/elements/Gradient.js
+++ b/src/elements/Gradient.js
@@ -7,10 +7,10 @@ import baseFind from '../modules/core/selector.js'
import * as gradiented from '../modules/core/gradiented.js'
export default class Gradient extends Container {
- constructor (type) {
+ constructor (type, attrs) {
super(
nodeOrNew(type + 'Gradient', typeof type === 'string' ? null : type),
- Gradient
+ attrs
)
}