Skip to content

Commit

Permalink
Convert keywords to strings before splitting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenton Ashworth committed Nov 3, 2011
1 parent 3c83c62 commit 11e8bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/twitterbuzz/src/twitterbuzz/dom-helpers.cljs
Expand Up @@ -31,7 +31,7 @@
(doto e (dom/setTextContent s))))

(defn normalize-args [tag args]
(let [parts (string/split tag #"(\.|#)")
(let [parts (string/split (name tag) #"(\.|#)")
[tag attrs] [(first parts)
(apply hash-map (map #(cond (= % ".") :class
(= % "#") :id
Expand Down

0 comments on commit 11e8bfe

Please sign in to comment.