Created
September 16, 2015 21:20
-
-
Save goatslacker/bb774f398d4b34f7b520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Alt from 'alt' | |
const alt = new Alt() | |
const actions = alt.generateActions('test') | |
const store1 = alt.createStore({ | |
displayName: 'store1', | |
bindListeners: { | |
test: actions.test | |
}, | |
test() { | |
console.log('one') | |
} | |
}) | |
const store2 = alt.createStore({ | |
displayName: 'store2', | |
bindListeners: { | |
test: actions.test | |
}, | |
test() { | |
console.log('two') | |
} | |
}) | |
actions.test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment