diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-03 22:59:58 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-03 22:59:58 +0100 |
commit | f089db0c1990d75bbd34713f97f547045ae92fca (patch) | |
tree | a0aa8346394aae92fff16ff4f1f452b30909cb5a /src/modules | |
parent | c336bd4a1c8e129efffed63424b724a148f053b3 (diff) | |
download | svg.js-f089db0c1990d75bbd34713f97f547045ae92fca.tar.gz svg.js-f089db0c1990d75bbd34713f97f547045ae92fca.zip |
Release 3.0.23.0.2
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/core/attr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/core/attr.js b/src/modules/core/attr.js index 79dd0d7..548a6fb 100644 --- a/src/modules/core/attr.js +++ b/src/modules/core/attr.js @@ -30,7 +30,7 @@ export default function attr (attr, val, ns) { last[curr] = this.attr(curr) return last }, {}) - } else if (typeof attr === 'object') { + } else if (typeof attr === 'object' && attr.constructor === Object) { // apply every attribute individually if an object is passed for (val in attr) this.attr(val, attr[val]) } else if (val === null) { |