Skip to content
Browse files

Merge pull request #14 from torbjornvatn/master

Unary version of the text function
  • Loading branch information...
2 parents 36bb724 + 4d7516b commit 97a7ee848e352c097ac794bd84560df93b7f703c @ibdknox committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/jayq/core.cljs
7 src/jayq/core.cljs
@@ -67,8 +67,11 @@
(defn anim [elem props dur]
(.animate elem (clj->js props) dur))
-(defn text [$elem txt]
- (.text $elem txt))
+(defn text
+ ([$elem]
+ (.text $elem))
+ ([$elem txt]
+ (.text $elem txt)))
(defn css [$elem opts]
(if (keyword? opts)

0 comments on commit 97a7ee8

Please sign in to comment.
Something went wrong with that request. Please try again.