Browse Source

Updated builds.

Mr.doob 11 years ago
parent
commit
bffb56912f
2 changed files with 181 additions and 180 deletions
  1. 5 10
      build/three.js
  2. 176 170
      build/three.min.js

+ 5 - 10
build/three.js

@@ -27487,24 +27487,19 @@ THREE.ImageUtils = {
 
                     request.open( 'GET', url, true );
                     request.responseType = "arraybuffer";
-                    request.onload = function() {
-                        if ( this.status === 200 ) {
+                    
+                    request.addEventListener( 'load', function ( event ) {
+
                             var imageData = THREE.ImageUtils.decodeTGA( this.response );
 
                             if ( imageData ) {
                                 texture.image = imageData;
                                 texture.sourceFile = url;
                                 texture.needsUpdate = true;
-                                
-                                return texture;
-                            }
 
-                        }
-                    };
-                    
-                    request.addEventListener( 'load', function ( event ) {
+                                if ( onLoad ) onLoad( texture );
 
-                            if ( onLoad ) onLoad( texture );
+                            }
 
 			}, false );
                         

File diff suppressed because it is too large
+ 176 - 170
build/three.min.js


Some files were not shown because too many files changed in this diff