in partnership with mediatemple

Ticket #941 (new defect)

Opened 2 months ago

Last modified 1 month ago

Asset.javascript onload fires 3 times in Opera

Reported by: ghouston Owned by:
Type: defect Priority: major
Milestone: Mootools version 1.2 Component: Plugins
Keywords: Cc:

Description

Asset.javascript onload fires 3 times in Opera.

window.addEvent('domready', function(){

	new Asset.javascript('scripts/test.js', {
		'onload': function(){
			alert('test');
		}
	});	
	
});	

With the test above Opera will trigger three alert windows.

This is with r1514.

See test case:
http://greghoustondesign.com/examples/mootools/bugs/asset-javascript/

Also, please consider adding the onload event to the Asset.javascript documentation. It is unclear that though there is no onSuccess or onComplete for Asset.javascript that there is an onload.

Change History

Changed 2 months ago by ghouston

This is with Opera 9.26, Build 8835

Changed 1 month ago by Kalle

This does not occur for me in Opera 9.50 Beta

Changed 1 month ago by kmike

with my opera 9.50 beta (Build 9613) - from 2 to 4 alert windows

Note: See TracTickets for help on using tickets.