From bc504f64458e359a2333b0c57592f79f9946a2eb Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 24 May 2017 17:56:08 -0700 Subject: [PATCH] Fix fn binding error --- lib/mixins/property-accessors.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/mixins/property-accessors.html b/lib/mixins/property-accessors.html index 030f32ec67..9a8a7e3723 100644 --- a/lib/mixins/property-accessors.html +++ b/lib/mixins/property-accessors.html @@ -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 */ }); } }