Hi niloc, thank you very much for your ideas. In my case your solution 3) (inlining the js) is not what I want. In my case I want two things:
1) easy to the end user (it shouldn't have to worry about adding thirdLibrary.js file anywhere)
2) easy for me to update to new versions of thirdLibrary.js. Do not have to mantain my own version of thirdLibrary.js.
So for me your 2b) solution is what I wanted and worked fine. See how I'm loading sizzle.js now:
http://code.google.com/p/gwtsizzle/source/browse/trunk/gwtsizzle/src/org/sgx/gwtsizzle/client/Sizzle.java#28
Note that for some unknown reason setWindow($wnd) was required for this to work!
How about ScriptInjector.TOP_WINDOW instead of your JsUtil.window().cast() ? (I think the reason is explained in the javadoc)
Using 2b and works perfectly :)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.