blob: b6c52c7ae7d00692aad32bbe70c1e9f768cd2225 [file] [log] [blame]
function __gwt_initWindowScrollHandler(scroll) {
var wnd = window, oldOnScroll = wnd.onscroll;
wnd.onscroll = function(evt) {
try {
scroll();
} finally {
oldOnScroll && oldOnScroll(evt);
}
};
// Remove the reference once we've initialize the handler
wnd.__gwt_initWindowScrollHandler = undefined;
}