Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit b6d76f0

Browse files
committed
fix: patch all properties on the proto chain
1 parent b239120 commit b6d76f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

zone.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,14 @@ Zone.patchProperty = function (obj, prop) {
178178
};
179179

180180
Zone.patchProperties = function (obj, properties) {
181-
(properties || Object.keys(obj).
181+
182+
(properties || (function () {
183+
var props = [];
184+
for (var prop in obj) {
185+
props.push(prop);
186+
}
187+
return props;
188+
}()).
182189
filter(function (propertyName) {
183190
return propertyName.substr(0,2) === 'on';
184191
})).

0 commit comments

Comments
 (0)