Permalink
Browse files

Merge pull request #1148 from DimitarChristoff/bug-ie9-readystate-assets

fix for #1133 so that IE9+ which has readystatechange for legacy
  • Loading branch information...
2 parents 2978047 + 79cc310 commit 7b9a87970b9728d9ffbfeb5de3d7da78ab3b4a64 @arian arian committed Aug 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Utilities/Assets.js
@@ -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);
});

0 comments on commit 7b9a879

Please sign in to comment.