Permalink
Browse files

Slight tweak to dom.cljs.

  • Loading branch information...
bobby committed Aug 5, 2011
1 parent 63496eb commit f9d3b1718ac7b7b1928fd19d2678b564dcaf8c0a
Showing with 4 additions and 4 deletions.
  1. +2 −1 samples/dom/src/dom/test.cljs
  2. +2 −3 src/cljs/clojure/browser/dom.cljs
@@ -15,7 +15,8 @@
(def destination (dom/get-element "destination"))
(dom/append source
- (dom/element "Testing me out"))
+ (dom/element "Testing me ")
+ (dom/element "out!"))
(def success-count (atom 0))
@@ -2,9 +2,8 @@
(:require [goog.dom :as dom]))
(defn append [parent & children]
- (do (doseq [child children]
- (dom/appendChild parent child))
- parent))
+ (apply dom/append parent children)
+ parent)
(defprotocol DOMBuilder
(-element [this] [this attrs-or-children] [this attrs children]))

0 comments on commit f9d3b17

Please sign in to comment.