Tutorial: window.removeEventListener

window.removeEventListener

Removes a previously registered event listener from the specified event. Supported window event types are:

  • blurred
  • bounds-changed
  • bounds-changing
  • closed
  • close-requested
  • focused
  • group-changed
  • hidden
  • maximized
  • minimized
  • restored
  • shown

Example

var mainWindow = fin.desktop.Window.getCurrent(),

mainWindow.removeEventListener("bounds-changed", aRegisteredListener);