Tutorial: window.removeEventListener

window.removeEventListener

Removes a previously registered event listener from the specified event.

Example

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

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