Re: ClojureScript + Jayq Resulting in Error

2013-01-19 Thread Max Penet
You need to use a more recent clojurescript version (you are missing clj-js from cljs.core). see https://github.com/ibdknox/jayq/blob/master/CHANGELOG.md#200-breaking-changes On Saturday, January 19, 2013 4:02:29 AM UTC+1, Ari wrote: I also noticed that when I compile the cljs code I get:

Re: ClojureScript + Jayq Resulting in Error

2013-01-19 Thread Evan Mezeske
A simple observation: Ari, you are using [lein-cljsbuild 0.2.9] while Ilia is using version 0.2.10. Also, you are using [org.clojure/clojurescript 0.0-1450]. I generally do not recommend specifying a clojurescript version explicitly -- the version that lein-cljsbuild defaults to is the one

ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
Hi, When I use the jayq https://github.com/ibdknox/jayq library to wait until the page loads (see following code) I get the error below. If I remove jayq, the code executes correctly. Does anyone know what I'm doing wrong? Thanks. Html: !DOCTYPE html html head/head body script

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
The error message was cutoff in my previous post; the error returned is: Uncaught TypeError: Cannot call method 'call' of undefined jQuery.ajaxSetup(jayq.core.clj__GT_js.call(null, cljs.core.ObjMap.fromObject([\ufdd0'accepts, \ufdd0'contents, \ufdd0'converters],

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ilia Ablamonov
Hello Ari, I've tried to reproduce your case and it works for me. I use the following project.clj: (defproject playground 0.1.0 :dependencies [[jayq 2.0.0]] :min-lein-version 2.0.0 :source-paths [src] :plugins [[lein-cljsbuild 0.2.10]] :cljsbuild {:builds [{:source-path

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
Hi, Below is the project.clj -- anything stand out? Thanks for the help. (defproject sample 0.1.0-SNAPSHOT :description Practice Clojure/Clojurescript app :url :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :source-paths [src/clj]

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
I also noticed that when I compile the cljs code I get: WARNING: Use of undeclared Var jayq.core/clj-js On Friday, January 18, 2013 9:56:22 PM UTC-5, Ari wrote: Hi, Below is the project.clj -- anything stand out? Thanks for the help. (defproject sample 0.1.0-SNAPSHOT :description