[richfaces-svn-commits] JBoss Rich Faces SVN: r11635 - trunk/framework/impl/src/main/javascript/ajaxjsf.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Mon Dec 8 09:43:06 EST 2008
Author: nbelaevski
Date: 2008-12-08 09:43:06 -0500 (Mon, 08 Dec 2008)
New Revision: 11635
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
Fixed possible memory leaks in Ajax script
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-12-08 14:38:05 UTC (rev 11634)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-12-08 14:43:06 UTC (rev 11635)
@@ -55,9 +55,13 @@
if(window.document.documentElement != _this._documentElement){
LOG.warn("Page for current request have been unloaded - abort processing" );
_this.abort();
+ _this = undefined;
return;
};
- if(_this._aborted){return;};
+ if(_this._aborted){
+ _this = undefined;
+ return;
+ };
LOG.debug("Reqest state : "+_this._request.readyState );
if (_this._request.readyState == 4 ) {
LOG.debug("Reqest end with state 4");
More information about the richfaces-svn-commits
mailing list