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

Commit

Permalink
Fixed the keys argument redeclaration in traits/core
Browse files Browse the repository at this point in the history
  • Loading branch information
ZER0 committed Nov 4, 2011
1 parent 823c957 commit 7fba434
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/api-utils/lib/traits/core.js
Expand Up @@ -189,8 +189,10 @@ exports.compose = compose;
*/
function exclude(keys, trait) {
let exclusions = Map(keys),
result = {},
keys = getOwnPropertyNames(trait);
result = {};

keys = getOwnPropertyNames(trait);

for each (let key in keys) {
if (!hasOwn.call(exclusions, key) || trait[key].required)
result[key] = trait[key];
Expand Down

0 comments on commit 7fba434

Please sign in to comment.