Permalink
Browse files

Unwrap element before getting value

  • Loading branch information...
1 parent 811fd11 commit 46c20663d10850d0f0898b52da3d9a264a640801 @zk committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cljs/nsfw/dom.cljs
View
@@ -72,7 +72,7 @@
(defn val
([el]
- (.-value el))
+ (.-value (if (coll? el) (first el) el)))
([el new-value]
(set! (.-value el) new-value)))

0 comments on commit 46c2066

Please sign in to comment.