Skip to content

Commit 2296875

Browse files
committed
refactor: Don't use object.assign because IE
1 parent dc04d36 commit 2296875

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/patch/set-property.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export default function (src, tar, data) {
2525
if (typeof prop === 'string') {
2626
style.cssText = prop;
2727
} else {
28-
Object.assign(style, prop);
28+
for (let name in prop) {
29+
if (prop.hasOwnProperty(name)) {
30+
style[name] = prop[name];
31+
}
32+
}
2933
}
3034
} else {
3135
node[name] = prop;

0 commit comments

Comments
 (0)