All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.user.client.impl.initWindowResizeHandler.js Maven / Gradle / Ivy

Go to download

A mocked implementation for GWT-2.5.1 that can run in the JVM to allow integration testing

The newest version!
function __gwt_initWindowResizeHandler(resize) {
  var wnd = window, oldOnResize = wnd.onresize;
  
  wnd.onresize = function(evt) {
    try {
      resize();
    } finally {
      oldOnResize && oldOnResize(evt);
    }
  };
  
  // Remove the reference once we've initialize the handler
  wnd.__gwt_initWindowResizeHandler = undefined;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy