AUI-799 - window does not fire event unload

http://issues.liferay.com/browse/AUI-799