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

Commit

Permalink
fix: patch all properties on the proto chain
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Apr 17, 2014
1 parent b239120 commit b6d76f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,14 @@ Zone.patchProperty = function (obj, prop) {
};

Zone.patchProperties = function (obj, properties) {
(properties || Object.keys(obj).

(properties || (function () {
var props = [];
for (var prop in obj) {
props.push(prop);
}
return props;
}()).
filter(function (propertyName) {
return propertyName.substr(0,2) === 'on';
})).
Expand Down

0 comments on commit b6d76f0

Please sign in to comment.