informal manx-json schema

This commit is contained in:
Anton Dyudin 2015-07-16 17:37:58 -07:00
parent 93267f568b
commit 3f83e87c32

View File

@ -24,6 +24,7 @@ $ ->
window.tree._basepath + path
window.tree.fragpath = (path) -> path.replace window.tree._basepath,""
window.tree.reactify = (obj) -> switch
# manx: {fork: ["string", {gn:"string" ga:{dict:"string"} c:{list:"manx"}}]}
when typeof obj == "string" then obj
when obj.gn?
React.createElement components[obj.gn] ? obj.gn,