diff options
Diffstat (limited to 'src/elements/Gradient.js')
-rw-r--r-- | src/elements/Gradient.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/Gradient.js b/src/elements/Gradient.js index 4e09cbd..a698225 100644 --- a/src/elements/Gradient.js +++ b/src/elements/Gradient.js @@ -61,9 +61,9 @@ extend(Gradient, gradiented) registerMethods({ Container: { // Create gradient element in defs - gradient: wrapWithAttrCheck(function (type, block) { - return this.defs().gradient(type, block) - }) + gradient (...args) { + return this.defs().gradient(...args) + } }, // define gradient Defs: { |