Changes between Initial Version and Version 1 of Ticket #11278


Ignore:
Timestamp:
Jun 9, 2010, 1:48:41 PM (10 years ago)
Author:
Jared Jurkiewicz
Comment:

The original author, Yoshiroh Kamiyama, denoted this is how the other parser works, and should be cleared after exec. And he's right. Looking in dojo.parser:

(function(){

var parseRunner = function(){

if(dojo.config.parseOnLoad){

dojo.parser.parse();

}

};

FIXME: need to clobber cross-dependency!! if(dojo.exists("dijit.wai.onload") && (dijit.wai.onload === dojo._loaders[0])){

dojo._loaders.splice(1, 0, parseRunner);

}else{

dojo._loaders.unshift(parseRunner);

}

})();

So I'm not sure why it is running either.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11278

    • Property Cc James Burke phiggins bill wildbill added
  • Ticket #11278 – Description

    initial v1  
    77When used with the dojox.mobile.app code, each time a new XHR completes, the parse() function is invoked on the entire page.  The breaks when it encounters an already instantiated widget, saying that the widget is already loaded.
    88
     9To those CC'ed, do you have any idea why the lightwieght parser is
     10getting repeatedly called on _loadURI?
     11
     12
    913Why is this necessary?  Can dojo.addOnLoad() not be used so that it is only invoked once?  This breaks any mobile app that has more than one templated view, and would be good to get fixed for 1.5