ipython/ipython — pull request #3732 by minrk (2013-07-23 01:08:02+00:00)
Title: add delay to autosave in beforeunload

allows forceful 'discard changes' by reloading the page and dismissing the warning, which @fperez really wanted today.

The timer doesn't start until after the dialog is dismissed,
so if you decide to nav away without saving changes,
changes will actually not be saved.