ajaxorg/cloud9 — pull request #926 by mattpardee (2012-02-09 04:55:41+00:00)
Title: Implemented "Confirm when exiting" feature

- Removed the old APF code that didn't work
- Added beforeunload event confirmation
- Put in a new general setting

@sergi @mikedeboer please test. The code is straightforward, but I've had instances where reloading without confirmation caused Chrome to Aw Snap.

Other areas of the codebase with apf.addEventListener("exit") may be conflicting:

* client/core/settings.js
* client/ext/offline/offline.js

Anyway just want to make sure it's just my computer :)