diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 17:59:56 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 17:59:56 +1000 |
commit | e497f9ccfb3107ba5c0991db5e1e07a2297948e6 (patch) | |
tree | 24874d4f674d1d9e8df806bcb940b338f7d3b7a1 /src/elements/Gradient.js | |
parent | 6ac53822882f5cc852c8e8e41e9507333fed2180 (diff) | |
download | svg.js-e497f9ccfb3107ba5c0991db5e1e07a2297948e6.tar.gz svg.js-e497f9ccfb3107ba5c0991db5e1e07a2297948e6.zip |
added even more tests
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: { |