[fix] remove stray 'length' property from style object

Fix #454
This commit is contained in:
Nicolas Gallagher
2017-04-27 15:10:03 -07:00
parent 5e8ad67296
commit 60ff75705e
+3
View File
@@ -71,6 +71,9 @@ const NativeMethodsMixin = {
const node = findNodeHandle(this);
const classList = Array.prototype.slice.call(node.classList);
const style = { ...node.style };
// See #454
delete style.length;
const domStyleProps = { classList, style };
// Next DOM state