Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #14 from torbjornvatn/master

Unary version of the text function
  • Loading branch information...
commit 97a7ee848e352c097ac794bd84560df93b7f703c 2 parents 36bb724 + 4d7516b
@ibdknox authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/jayq/core.cljs
View
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)
Please sign in to comment.
Something went wrong with that request. Please try again.