Skip to content

Instantly share code, notes, and snippets.

@verma
Created April 17, 2014 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save verma/11016107 to your computer and use it in GitHub Desktop.
Save verma/11016107 to your computer and use it in GitHub Desktop.
om/IWillMount
(will-mount [_]
(go (loop []
(let [file (<! modal-chan)]
(log "The user wants to tag " file)
(log "Tags are", tags)
(log "owner is", owner)
(log "state is", (om/get-state owner))
(om/set-state! owner :target file)
(.modal ($ (om/get-node owner)) "show"))
(recur))))
The user wants to tag TestFile.js
Tags are[]
owner is[object Object]
state is{:target ""}
Uncaught Error: No protocol method ICursor.-path defined for type cljs.core/PersistentVector: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment