1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

on Refactoring...

This commit is contained in:
Rokt33r
2015-08-17 01:10:08 +09:00
parent 932997259f
commit 23b8b49c00
59 changed files with 1960 additions and 2179 deletions

View File

@@ -0,0 +1,23 @@
var Reflux = require('reflux')
var actions = Reflux.createActions([
'update',
'destroy'
])
module.exports = Reflux.createStore({
listenables: [actions],
onUpdate: function (user) {
this.trigger({
status: 'userUpdated',
data: user
})
},
onDestroy: function (user) {
this.trigger({
status: 'userDestroyed',
data: user
})
},
Actions: actions
})