Skip to content

Commit

Permalink
fix for mootools#1133 so that IE9+ which have readystatechange for le…
Browse files Browse the repository at this point in the history
…gacy take advantage of addEventListener for load instead
  • Loading branch information
DimitarChristoff committed Aug 28, 2012
1 parent 2978047 commit 79cc310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Utilities/Assets.js
Expand Up @@ -35,7 +35,7 @@ var Asset = {
delete properties.document;

if (load){
if (typeof script.onreadystatechange != 'undefined'){
if (!script.addEventListener){
script.addEvent('readystatechange', function(){
if (['loaded', 'complete'].contains(this.readyState)) load.call(this);
});
Expand Down

0 comments on commit 79cc310

Please sign in to comment.