I ran into the same thing with .setTimeout in enfocus. I moved to using the wrapper function inside the goog library. In the case of .setTimeout I used goog.async.Delay and for alert maybe you could use goog.ui.dialog.
http://closure-library.googlecode.com/svn/docs/class_goog_ui_Dialog.html Creighton Kirkendall On Jan 16, 5:32 am, David Powell <djpow...@djpowell.net> wrote: > On Mon, Jan 16, 2012 at 7:59 AM, gchristnsn <gchrist...@gmail.com> wrote: > > I can't even call `(js/alert "test")' in IE 9, it compiles into: > > > alert.call(null,"test"); > > > and says: "Invalid calling object" (IE 9 standayrds mode, in IE 8 > > standards mode it doesn't recognize the `call' method) > > > I need `alert' to debug some other glitch which arises in IE 9 (but > > all works fine in other browsers), is it by design? > > The problem is that things like window.alert on IE, are weird built-in > things that aren't actually 'functions' in the javascript sense, in > that they don't have Function as their prototype, so clojurescript's > attempt to .call them fails. I think that this might actually be > permitted behaviour? > > So, I'm not sure what the best solution is. As a quick workaround you > could probably write your own myalert function in javascript that just > calls window.alert, and include it at the top of your page - > clojurescript will be able to call js/myalert. > > Perhaps clojurescript should have some sort of workaround for making > these built-ins work on IE... Any ideas? > > -- > Dave -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en