Permalink
Browse files

Address issue #126

Initial delay for a timer was inexplicably set to 1000 rather than 0
as documented.
  • Loading branch information...
1 parent 017d36e commit 333adf8519931fb43e6274e162bb9976dd920c6a @daveray committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/seesaw/timer.clj
View
@@ -42,7 +42,7 @@
"
[f & {:keys [start? initial-value] :or {start? true} :as opts}]
(let [a (action :handler (timer-handler f initial-value))
- t (javax.swing.Timer. 1000 a)]
+ t (javax.swing.Timer. 0 a)]
(apply-options t (dissoc opts :start? :initial-value))
(when start? (.start t))
t))

0 comments on commit 333adf8

Please sign in to comment.