Permalink
Browse files

add toggle-class

Signed-off-by: Chris Granger <ibdknox@gmail.com>
  • Loading branch information...
ibdknox committed May 9, 2012
1 parent 88de63d commit ea04ab835e1e2c6d9f3b5f7d9a86d347b8d8f69f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/jayq/core.cljs
View
@@ -98,6 +98,10 @@
(let [cl (name cl)]
(.removeClass $elem cl)))
+(defn toggle-class [$elem cl]
+ (let [cl (name cl)]
+ (.toggleClass $elem cl)))
+
(defn append [$elem content]
(.append $elem content))

0 comments on commit ea04ab8

Please sign in to comment.