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.
19 lines
415 B
19 lines
415 B
H =
|
|
all: (objects, action, args) ->
|
|
L.wait_for_real_id objects, -> action.apply(null, args)
|
|
|
|
module.exports =
|
|
add: (name, object, relations) ->
|
|
if H.all relations, @add, arguments
|
|
arguments
|
|
else false
|
|
|
|
update: (object) ->
|
|
if H.all [object], @update, arguments
|
|
arguments
|
|
else false
|
|
|
|
delete: (object) ->
|
|
if H.all [object], @delete, arguments
|
|
arguments
|
|
else false
|
|
|