Skip to content

Commit 07ad792

Browse files
authored
Merge pull request #18 from richmolj/master
Add back attr prototype
2 parents f8d6ce3 + 73976c7 commit 07ad792

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/attribute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class Attribute {
2121
this._eachAttribute(klass, (attr) => {
2222
klass.attributeList[attr.name] = attr;
2323
let descriptor = attr.descriptor();
24+
Object.defineProperty(klass.prototype, attr.name, descriptor);
2425
let instance = new klass();
2526

2627
let decorators = instance['__attrDecorators'] || [];

0 commit comments

Comments
 (0)