Skip to content

Commit 4a82ff3

Browse files
MattRixchrisvfritz
authored andcommitted
Fix bug in store pattern example (vuejs#732)
Seems like clearMessageAction should clear the message, not set it to the same thing as the log message.
1 parent 9524972 commit 4a82ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var store = {
4444
},
4545
clearMessageAction () {
4646
this.debug && console.log('clearMessageAction triggered')
47-
this.state.message = 'clearMessageAction triggered'
47+
this.state.message = ''
4848
}
4949
}
5050
```

0 commit comments

Comments
 (0)