Core: new scripts initialization could occur after new request in queue
-----------------------------------------------------------------------
Key: RF-9832
URL:
https://jira.jboss.org/browse/RF-9832
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: core
Affects Versions: 3.3.3.Final
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Priority: Critical
Fix For: Future_3.X
from 3.3.x ajax.js:
evalScripts : function(node, isLast){
var newscripts = this.getElementsByTagName("script",node);
LOG.debug("Scripts in updated part count : " + newscripts.length);
if( newscripts.length > 0 ){
var _this = this;
window.setTimeout(function() {
for (var i = 0; i < newscripts.length; i++){
_this._evaluateScript(newscripts[i]);
}
newscripts = null;
if (isLast)
{
_this.doFinish();
}
_this = undefined;
}, 0);
} else
{
if (isLast)
{
this.doFinish();
}
}
},
last doFinish call not wrapped to setTimeout. So if the last updateable area do not has
scripts to be evaluated and another request already exist in queue - it will befired
*before* all the scripts evaluated.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira