Commit 9b39c1fe authored by Alex Russell's avatar Alex Russell

implement djConfig.parseOnLoad param. Move tests to use parseOnLoad to signify...

implement djConfig.parseOnLoad param. Move tests to use parseOnLoad to signify that they want/need full page parsing onload. Lots of hygene fixes for the dijit test pages. Fixes #3510


git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@9408 560b804f-0ae3-0310-86f3-f6aa0a117693
parent 182fac25
......@@ -226,12 +226,20 @@ dojo.parser = new function(){
//Register the parser callback. It should be the first callback
//after the a11y test.
// FIXME: need to clobber cross-dependency!!
if(dojo.exists("dijit.util.wai.onload") && (dijit.util.wai.onload === dojo._loaders[0])){
dojo._loaders.splice(1, 0, function(){ dojo.parser.parse(); });
}else{
dojo._loaders.unshift(function(){ dojo.parser.parse(); });
}
(function(){
var parseRunner = function(){
if(djConfig["parseOnLoad"] == true){
dojo.parser.parse();
}
};
// FIXME: need to clobber cross-dependency!!
if(dojo.exists("dijit.util.wai.onload") && (dijit.util.wai.onload === dojo._loaders[0])){
dojo._loaders.splice(1, 0, parseRunner);
}else{
dojo._loaders.unshift(parseRunner);
}
})();
//TODO: ported from 0.4.x Dojo. Can we reduce this?
dojo.parser._anonCtr = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment