[gwt-contrib] Where is the entry of the __static method?

2010-03-23 Thread 王在祥
for a native method: private native void registerJsFunction(String moduleName) /*-{ var self = this; $wnd[moduleName] = function(arg) { se...@wangzx.demo.client.testapp::callback(Lcom/google/gwt/core/ client/JavaScriptObject;)(arg);

Re: [gwt-contrib] Where is the entry of the __static method?

2010-03-23 Thread BobV
The __static object is injected into the JavaScript namespace by the development mode plugin upon startup and is used to dispatch calls to static methods and accesses to static fields. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To un

Re: [gwt-contrib] Where is the entry of the __static method?

2010-03-23 Thread John Tamplin
On Tue, Mar 23, 2010 at 2:48 PM, 王在祥 wrote: > My problem is: Where is the entry point of the __static method? Is it > a JavaScript function or a C native function? As Bob mentioned, it is set by DevMode startup. This is the JSNI method which is loaded to set it: function __defineStatic(__arg0