mootools/mootools-core — Issue #2198: window.addEvent should support window.onbeforeunload
Author: magicalhobo
Created: 2012-01-10 09:12:46+00:00
State: open

```javascript
window.addEvent('beforeunload', handler);
```
should add standard event handling that can replace:

```javascript
window.onbeforeunload = handler;
```