fix for #1133 so that IE9+ which has readystatechange for legacy #1148

Merged
merged 1 commit into from Aug 28, 2012
@@ -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);
});