Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jul 12, 2019
1 parent 3cf8c4f commit 04737bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/lib/attribute.js
Expand Up @@ -422,7 +422,7 @@ export default class Attribute extends BaseAttribute {
_validateAttributeUpdaters() {
const state = this.userData;

// Check that either 'accessor' or 'update' is a valid function
// Check that 'update' is a valid function
const hasUpdater = state.noAlloc || typeof state.update === 'function';
if (!hasUpdater) {
throw new Error(`Attribute ${this.id} missing update or accessor`);
Expand Down

0 comments on commit 04737bf

Please sign in to comment.