Author: ktlili
Date: Wed Oct 17 17:12:22 2007
New Revision: 18912

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18912&repname=
=3Djahia
Log:
- add Event.observe(window, 'unload', Event.unloadCache);

This method fix severals mem. leaks caused by prototype.

More informations:
http://www.prototypejs.org/api/event/unloadCache
http://wrongnotes.blogspot.com/2007/03/stopping-memory-leaks-with-prototype=
.html

Modified:
    trunk/core/src/webapp/jsp/jahia/chat/chat.jsp

Modified: trunk/core/src/webapp/jsp/jahia/chat/chat.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/webapp=
/jsp/jahia/chat/chat.jsp&rev=3D18912&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/webapp/jsp/jahia/chat/chat.jsp (original)
+++ trunk/core/src/webapp/jsp/jahia/chat/chat.jsp Wed Oct 17 17:12:22 2007
@@ -367,6 +367,8 @@
     checkMessages();
 }
 =

+// break memory leaks
+Event.observe(window, 'unload', Event.unloadCache);
 =

 </script>
 </head>

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to