Skip to content

Instantly share code, notes, and snippets.

@ckirkendall
Created June 27, 2012 11:19
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 ckirkendall/3003444 to your computer and use it in GitHub Desktop.
Save ckirkendall/3003444 to your computer and use it in GitHub Desktop.
(defn modal-show
"displays a modal window"
[]
(chainable-standard
(fn [node]
(.modal node "show"))))
; Note: chainable-standard is a base wrapper that
; in enfocus.core that enables you to work with all
; other transforms
;you then can use this in any defaction, at.
(defaction init []
["#header"] (content "this is cool")
["#mymodal"] (modal-show))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment