Core libraries and tools part for pro architecture. It's a submodule - use from this perspective http://git.maniak.pro/madmaniak/pro
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
310 B
9 lines
310 B
global.Actions = {}
|
|
|
|
Dispatcher.on L.ns(__dirname, "update"), (data) ->
|
|
if object = Store.get_ref(data.ref)
|
|
object.v = data.v - 1
|
|
LocalStore.update object, data.transition, data.params
|
|
|
|
Dispatcher.on L.ns(__dirname, "delete"), (data) ->
|
|
LocalStore.delete object if object = Store.get_ref(data.ref)
|
|
|