Skip to content

Commit

Permalink
Fix fn binding error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed May 25, 2017
1 parent 3591be8 commit bc504f6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/mixins/property-accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,16 @@
this.__dataHasAccessor[property] = true;
saveAccessorValue(this, property);
Object.defineProperty(this, property, {
get: () => this.__data[property],
set: readOnly ? function(){} : (value) => {this._setProperty(property, value)}
/* eslint-disable valid-jsdoc */
/** @this {PropertyAccessors} */
get: function() {
return this.__data[property];
},
/** @this {PropertyAccessors} */
set: readOnly ? function() {} : function(value) {
this._setProperty(property, value);
}
/* eslint-enable */
});
}
}
Expand Down

0 comments on commit bc504f6

Please sign in to comment.