Skip to content
Browse files

fix for #1133 so that IE9+ which have readystatechange for legacy tak…

…e advantage of addEventListener for load instead
  • Loading branch information...
1 parent 2978047 commit 79cc31028262242c9059db68a3fa6f1519495a44 @DimitarChristoff committed Aug 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Utilities/Assets.js
View
2 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 79cc310

Please sign in to comment.
Something went wrong with that request. Please try again.