diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-10-12 18:18:36 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-10-12 18:18:36 +0200 |
commit | 42664efc087efacec3d44af87919a7305720c9bc (patch) | |
tree | af1c8ff967c718bb38d6d0a90cea4cb7341bb199 /src/sugar.js | |
parent | 26ac29a1431103b037003b97e4ce52cd3bc5a401 (diff) | |
download | svg.js-42664efc087efacec3d44af87919a7305720c9bc.tar.gz svg.js-42664efc087efacec3d44af87919a7305720c9bc.zip |
Removed wrong tests in sugar.js, fixed remaining tests. Made fill and stroke a nop when no argument given
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar.js b/src/sugar.js index 7db5ce6..e59f905 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -12,6 +12,8 @@ var sugar = { var i, extension = {} extension[m] = function(o) { + if (typeof o == 'undefined') + return this if (typeof o == 'string' || SVG.Color.isRgb(o) || (o && typeof o.fill === 'function')) this.attr(m, o) |