aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/core/attr.js2
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) {