Skip to content

Commit b5ffb74

Browse files
authored
Merge pull request #95 from rkrupinski/master
Fixed: mixed up conditionals
2 parents 63b229e + f48b7b8 commit b5ffb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/23.flux-pattern.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var Dispatcher = function () {
2121
We expect the store to have an update method(), so let's modify register to expect it.
2222
```javascript
2323
function register(store) {
24-
if (!store || !store.update && typeof store.update === 'function') {
24+
if (!store || !store.update || typeof store.update !== 'function') {
2525
throw new Error('You should provide a store that has an update method');
2626
} else {
2727
this._stores.push({store: store});

0 commit comments

Comments
 (0)