Interresting. But in this case, is not it the same problem for all anonymous classes ? Do not you have this problem with event handler ?
myButton.addClickHanler(new ClickHandler() { public void onClick(ClickEvent e) {...} } 2011/9/26 Rokesh Jankie <rjan...@gmail.com> > Almost there... > > > method doSomething (){ > > > callback c = createCallback(); > > > } > > > static AsyncCallback<?> callback = null; > > AsyncCallback<?> createCallBack(){ > > if (callback==null){ > callback = new AsyncCallback<Object>() { > // implement onSuccess > // implement onFailure > } > > } > return callback; > > } > > > Since we are keeping the callbacks stateless, this really improved > performance on IE! > > -- > 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/-/0Xvfkgn9RjcJ. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.