Skip to content

Instantly share code, notes, and snippets.

@ckirkendall
Created June 27, 2012 11:19
Show Gist options
  • Select an option

  • Save ckirkendall/3003444 to your computer and use it in GitHub Desktop.

Select an option

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