Created
June 27, 2012 11:19
-
-
Save ckirkendall/3003444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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