Shropshire, Andrew A wrote:
One could simply deprecate the onunload (but still support it) and create a new version onDestroy that is called as well. Old apps won’t know about onDestroy so it will be harmless and won’t break them. New apps simply don’t need to implement onunload and will use onDestroy. If you change onbeforeunload you will have compatibility issues with all those pages that use it now.

Adding properties to the onunload event is probably pretty safe.

-Boris

Reply via email to