On Sunday, January 20, 2013 3:14:50 PM UTC+1, Sebastián Gurin wrote: > > 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<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/ScriptInjector.html#TOP_WINDOW>instead of your JsUtil.window().cast() ? (I think the reason is explained in the javadoc)
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ncYUbMUaK5QJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
