Skip to content

Instantly share code, notes, and snippets.

Created July 29, 2013 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/803534eb6496ffd7c36d to your computer and use it in GitHub Desktop.
Save anonymous/803534eb6496ffd7c36d to your computer and use it in GitHub Desktop.
How do I convert the elements in the intersection from documentFragments into nodes so that I can set attributes?
(reduce (fn [element] (dommy/set-attr! element :checked))
( cs/intersection (set colors ) (set t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment