We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63b229e + f48b7b8 commit b5ffb74Copy full SHA for b5ffb74
patterns/23.flux-pattern.md
@@ -21,7 +21,7 @@ var Dispatcher = function () {
21
We expect the store to have an update method(), so let's modify register to expect it.
22
```javascript
23
function register(store) {
24
- if (!store || !store.update && typeof store.update === 'function') {
+ if (!store || !store.update || typeof store.update !== 'function') {
25
throw new Error('You should provide a store that has an update method');
26
} else {
27
this._stores.push({store: store});
0 commit comments