http://gwt-code-reviews.appspot.com/1601803/diff/1/user/src/com/google/gwt/user/client/ui/ScrollImpl.java
File user/src/com/google/gwt/user/client/ui/ScrollImpl.java (right):

http://gwt-code-reviews.appspot.com/1601803/diff/1/user/src/com/google/gwt/user/client/ui/ScrollImpl.java#newcode56
user/src/com/google/gwt/user/client/ui/ScrollImpl.java:56:
scrollable.__scrollHandler = scrollHandler;
How about creating static functions (have a look into
com.google.gwt.user.client.impl.DOMImplTrident) that use
window.event.srcElement to get a reference to the scrollableElem? That
way it wouldn't leak and wouldn't need to be "uninstalled".
For the container.onresize, one solution could be to set the
scrollableElem as an expando; e.g.

container.__scrollable = scrollable;

And thus use the following from within the resize handler:
var scrollableElem = window.event.srcElement;
scrollableElem = scrollableElem.__scrollable || scrollableElem;

(the event's target can be either the scrollable or the container; the
__scrollable expando references the scrollable from the container)

http://gwt-code-reviews.appspot.com/1601803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to