Hi everyone,
I finally decided to give clojurescript a spin. Unfortunately, the momentum
died before I even got the ball running. I'm trying to replicate the
canonical example on the enfocus website using lein-cljsbuild [0.2.1] and
enfocus [0.9.1-SNAPSHOT]:
(ns my.namespace
(:require [enfocus.core :as ef])
(:require-macros [enfocus.macros :as em]))
(defn start []
(em/at js/document
["body"] (em/content "Hello world!"))
(set! (.onload js/window) start)
lein cljsbuild once fails with the following error:
Compiling "resources/public/js/main.js" failed:
java.lang.AssertionError: Assert failed: set! target must be a field or a
symbol naming a var
Any clues?
Cheers
Andreas
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en