cljsbuild 0.2.2 build failure

2012-07-01 Thread Eric Harris-Braun
This gist https://gist.github.com/3019801 shows a lein cljsbuild failure with the error: Could not locate clojure/instant__init.class or clojure/instant.clj on classpath Does anybody have any idea why this would be happening and what to do to fix it? Thanks, -e -- You received this

testing framework for clojurescript?

2011-10-29 Thread Eric Harris-Braun
Hi folks, I'm looking for people's experience and best-practices writing tests for clojurescript apps. Have folks been using Google Closure's test functions? Anybody tried integrating Jasmine? Any other approaches?What I'd love is something like midje for a more BDD approach... Thanks,

How do I add goog.ui.MenuItem or goog.ui.Option items to goog.ui.Select in clojurescript?

2011-10-10 Thread Eric Harris-Braun
Here's my clojurescript function: (defn make-select [elem-id] (let [select (goog.ui.Select. Heading) select-elem (d/element (keyword (str div# elem-id)))] (.addItemAt select (goog.ui.MenuItem. Item 1) 0) (.addItem select (goog.ui.Option. Item 2))

Re: How do I add goog.ui.MenuItem or goog.ui.Option items to goog.ui.Select in clojurescript?

2011-10-10 Thread Eric Harris-Braun
Well, I figured it out. It was working just fine. The problem was that the Options/MenuItems are added elsewhere to the dom. I didn't have the css loading so I just didn't notice that they were at the very bottom of the screen. On Oct 10, 9:25 pm, Eric Harris-Braun zippy.314@gmail.com

Re: goog.net.cookies with clojurescript?

2011-10-06 Thread Eric Harris-Braun
[]   (.set goog.net.cookies name content -1)) Which will properly set the cookie (see attachment) On Wed, Oct 5, 2011 at 11:24 PM, Eric Harris-Braun zippy.314@gmail.comwrote: Has anybody successfully used cookies in clojurescript with goog.net.cookies? I keep getting this error

goog.net.cookies with clojurescript?

2011-10-05 Thread Eric Harris-Braun
Has anybody successfully used cookies in clojurescript with goog.net.cookies? I keep getting this error: 'this.isValidName' [undefined] is not a function (Safari) or Uncaught TypeError: Object [object DOMWindow] has no method 'isValidName' (Chrome) when I try to set a cookie via

clojurescript closure problem?

2011-09-21 Thread Eric Harris-Braun
Check out this little bit of code: (doseq [hid [a b c]] (goog.dom.appendChild (goog.dom.$ some-element-id) (goog.dom.createDom div (.strobj {id hid}) (str Test-hid))) (goog.events.listen (goog.dom.$ hid) goog.events.EventType.CLICK, (fn [e] (js/alert hid What I want it do to is add in a