Skip to content

Commit

Permalink
fixed: reflectedProperties = array
Browse files Browse the repository at this point in the history
Signed-off-by: Wouter Vroege <[email protected]>
  • Loading branch information
woutervroege committed May 14, 2020
1 parent 568263d commit e830945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflected-properties-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ReflectedProperties = (SuperClass) => class extends SuperClass {
}

static __getAttributeNameByPropertyName(propName) {
const reflectedProps = this.constructor.reflectedProperties || {};
const reflectedProps = this.constructor.reflectedProperties || [];
const attrNames = this.constructor.propertyAttributeNames || {};
if(reflectedProps.indexOf(propName) === -1) return;
const attrName = attrNames[propName] || propName.toLowerCase();
Expand Down

0 comments on commit e830945

Please sign in to comment.