diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-08 14:14:05 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-08 14:14:05 +0100 |
commit | f7f6c4b801172ce119d4ea9a650c543670474784 (patch) | |
tree | 7b4c2426101d30cd67c2e5c38ed5cee40bfdf55c /src | |
parent | d3baefd3d4fac81ba27459197f289bff1a846046 (diff) | |
download | svg.js-f7f6c4b801172ce119d4ea9a650c543670474784.tar.gz svg.js-f7f6c4b801172ce119d4ea9a650c543670474784.zip |
`fill()` and `stroke()` return the fill and stroke attribute when called as getter (#789)
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/optional/sugar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js index 69f723e..f4c20fc 100644 --- a/src/modules/optional/sugar.js +++ b/src/modules/optional/sugar.js @@ -23,7 +23,7 @@ var sugar = { extension[m] = function (o) { if (typeof o === 'undefined') { - return this + return this.attr(m) } if (typeof o === 'string' || Color.isRgb(o) || (o instanceof Element)) { this.attr(m, o) |