YahooArchive / fluxible-router

MOVED TO FLUXIBLE REPO
104 stars 26 forks source link

Feature Request - Handle onbeforeunload #16

Closed gfranko closed 9 years ago

gfranko commented 9 years ago

We need to handle the situation when a user leaves a particular page and the window.onbeforeunload() method does not seem to be called with the router.

A possible solution would be to patch navigateAction.js to check if there is a window.onbeforeunload() method defined on the window, retrieve the string value from it, and then call window.confirm() with the appropriate string.

Thoughts?

redonkulus commented 9 years ago

This was fixed by #19