3rd party JS library with functions on a JSON object

2010-06-14 Thread markmccall
I am integrating a 3rd party JavaScript library into my GWT 2.0 application and I have succeeded in invoking the libary using basic JSNI but I want to take the integration even further so that callers of the library never have to code any JSNI, if possible. The 3rd party library has a class Foo

Re: 3rd party JS library with functions on a JSON object

2010-06-14 Thread Thomas Broyer
On 14 juin, 20:28, markmccall markwmcc...@gmail.com wrote: I am integrating a 3rd party JavaScript library into my GWT 2.0 application and I have succeeded in invoking the libary using basic JSNI but I want to take the integration even further so that callers of the library never have to

Re: 3rd party JS library with functions on a JSON object

2010-06-14 Thread markmccall
Thanks for the clarification on the JSON vs JavaScript object. I thought about using an overlay type earlier, but came away from the documentation with the impression that overlays were intended to be used for already existing objects in the wild, but the technique you demonstrate below seems to