|
@@ -45,17 +45,19 @@ THREE.XHRLoader.prototype = {
|
|
|
|
|
|
THREE.Cache.add( url, response );
|
|
|
|
|
|
- if ( this.status == 200 && this.readyState == 4 ) {
|
|
|
+ if ( this.status === 200 && this.readyState === 4 ) {
|
|
|
|
|
|
if ( onLoad ) onLoad( response );
|
|
|
|
|
|
+ scope.manager.itemEnd( url );
|
|
|
+
|
|
|
} else {
|
|
|
|
|
|
if ( onError ) onError( event );
|
|
|
|
|
|
- }
|
|
|
+ scope.manager.itemError( url );
|
|
|
|
|
|
- scope.manager.itemEnd( url );
|
|
|
+ }
|
|
|
|
|
|
}, false );
|
|
|
|