Ticket #941 (new defect)
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
Note: See
TracTickets for help on using
tickets.