From f089db0c1990d75bbd34713f97f547045ae92fca Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 3 Dec 2018 22:59:58 +0100 Subject: Release 3.0.2 --- src/modules/core/attr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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) { -- cgit v1.2.3