Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed May 19, 2015
1 parent 259dcb0 commit c74b456
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/alt/store/AltStore.js
Expand Up @@ -44,7 +44,7 @@ class AltStore {

this.lifecycle.afterEach.push({
payload,
state :this.state
state: this.state
})
})

Expand Down
2 changes: 1 addition & 1 deletion src/alt/store/StoreMixin.js
Expand Up @@ -27,7 +27,7 @@ const StoreMixin = {

const validHandlers = ['success', 'error', 'loading']
validHandlers.forEach((handler) => {
if (asyncSpec[handler] && !asyncSpec[handler][Sym.ACTION_KEY]) {
if (asyncSpec[handler] && !asyncSpec[handler].id) {
throw new Error(`${handler} handler must be an action function`)
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/alt/store/index.js
Expand Up @@ -37,7 +37,7 @@ function createPrototype(proto, alt, key, extras) {
'init',
'rollback',
'snapshot',
'unlisten',
'unlisten'
].reduce((obj, name) => {
obj[name] = transmitter()
return obj
Expand Down
1 change: 1 addition & 0 deletions src/utils/connectToStores.js
Expand Up @@ -62,6 +62,7 @@ function connectToStores(Component) {
},

componentDidMount() {
const stores = Component.getStores(this.props)
this.storeListeners = stores.map((store) => {
return store.listen(this.onChange)
})
Expand Down

0 comments on commit c74b456

Please sign in to comment.