Skip to content

Commit

Permalink
Use the right trap
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebmaster committed Jun 11, 2016
1 parent 5d1a96e commit 41d76d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/constructs/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ const ${this.name}Properties = new Proxy(${this.name}PropertiesConstructor.proto
deleteProperty() {
return false;
},
get(target, key) {
if (key in this) {
return this[key];
}
return target[key];
getOwnPropertyDescriptor(target, key) {
},
});\n\n`;
};
Expand Down

0 comments on commit 41d76d6

Please sign in to comment.