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.
17 lines
350 B
17 lines
350 B
require './actions'
|
|
require './local'
|
|
|
|
TmpIdsCheck = require './tmp_ids_check'
|
|
Remote = require './remote'
|
|
|
|
global.Store = L.compose
|
|
|
|
collections: {}
|
|
|
|
get: (name, ids) ->
|
|
return [] unless name and ids
|
|
L.compact L.at(@collections[name], ids)
|
|
|
|
get_ref: (reference) -> @get.apply(@, reference)[0]
|
|
|
|
, TmpIdsCheck, Remote, LocalStore
|
|
|