Opened 9 years ago

Last modified 9 years ago

#15876 closed defect

_loadTest.js broken after AMD loader support — at Initial Version

Reported by: bill Owned by: bill
Priority: undecided Milestone: 1.8.1
Component: Dijit Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:

Description

After my changes in #15616, Tooltip_quirks_mouse.html is hanging, when loading ../quirks.html?file=test_Tooltip.html.

The problem is in the script related code:

for(var i=0; i <scripts.length; i++){
	var script = scripts[i];
	if(!script['_oldGetAttribute']){
		var src = script.getAttribute('_oldsrc');
		if(src){
			script._oldGetAttribute = script.getAttribute;
			script.getAttribute = function(attr){ if(/^src$/i.test(attr))attr='_oldsrc';return script._oldGetAttribute(attr) };
		}
	}
}

which is likely running while the AMD loader is inserting <script> tags to load new modules. It gets an exception about _oldGetAttribute.

Change History (0)

Note: See TracTickets for help on using tickets.