Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Sep 27, 2018
1 parent b5140cd commit 74b11a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store.js
Expand Up @@ -162,7 +162,7 @@ assign(Store.prototype, {
let dirty = false;

for (const key in newState) {
if (this._computed[key]) throw new Error(`'${key}' is a read-only property`);
if (this._computed[key]) throw new Error(`'${key}' is a read-only computed property`);
if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true;
}
if (!dirty) return;
Expand Down

0 comments on commit 74b11a6

Please sign in to comment.