define ["./dom", "./ajax", "./zone"],
(dom, ajax) ->
TREE = "[data-component-type='core/Tree']"
NODE_ID = "data-node-id"
SELECTOR = "#{TREE} [#{NODE_ID}]"
LOADING = "tree-children-loading"
LOADED = "tree-children-loaded"
EXPANDED = "tree-expanded"
SELECTED = "selected-leaf-node"
send = (node, action, success) ->
container = node.findParent TREE
url = container.attr "data-tree-action-url"
ajax url,
data:
"t:action": action
"t:nodeid": node.attr NODE_ID
success: success
loadChildren = (node) ->