Okay, When I put the code of the external JS file in a JSNI method. Do I
have to put all the code I one method? To have a concrete example here is
the code I use:
https://github.com/Atmosphere/atmosphere-javascript/blob/master/modules/javascript/src/main/webapp/javascript/atmosphere.js
Could
The short answer is yes, it can all go into one method, or several methods,
etc. The important part is "what does that JS expect to do", and how might
we accidentally break it by letting a compiler at it.
With that big of a file, I'm afraid I don't have time right now to take it
apart piece by
I think Ray Cromwell did something like that using a generator and a
linker. Can't remember exact details and he never shared is experiment. I
would guess it was a resource generator so you can define a
JavaScriptResource in ClientBundle (instead of TextResource) and then this
resource made