Re: Using goog.Timer from ClojureScript leads to compile error in advanced mode

2011-12-04 Thread Paul Richards
I don't understand why, but changing to a 'require' instead of a 'use' fixed my problem: (ns hello (:require [goog.Timer :as Timer] [goog.dom :as dom] [goog.events :as events] [goog.events.EventType :as EventType] [goog.events.KeyCodes :as KeyCodes]

Using goog.Timer from ClojureScript leads to compile error in advanced mode

2011-12-03 Thread Paul Richards
Hi, I'm using goog.Timer inside my ClojureScript application. When I compile using the non-optimizing cljsc the code compiles and the application works fine. If I try to compile using the optimizing compiler however I get the following error: cljsc hello.cljs '{:optimizations :advanced}' > hello