Skip to content

Commit

Permalink
Merge pull request #53 from immoh/add_anim_callback
Browse files Browse the repository at this point in the history
Support anim with on-finish callback
  • Loading branch information
frankhale committed Aug 28, 2014
2 parents 8799178 + 943abc5 commit 358a0cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/jayq/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@
([this k not-found]
(-lookup this k not-found))))


(defn anim [$elem props dur]
(.animate $elem (clj->js props) dur))
(defn anim [$elem props & [speed on-finish]]
(.animate $elem (clj->js props) speed on-finish))

(defn text
([$elem]
Expand Down

0 comments on commit 358a0cd

Please sign in to comment.