Browse Source

Renamed ignoreHTTPStatus property to strict

leitzler 9 years ago
parent
commit
db73634a51
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/loaders/XHRLoader.js

+ 4 - 4
src/loaders/XHRLoader.js

@@ -12,7 +12,7 @@ THREE.XHRLoader.prototype = {
 
 
 	constructor: THREE.XHRLoader,
 	constructor: THREE.XHRLoader,
 
 
-	ignoreHTTPStatus: false,
+	strict: true,
 
 
 	load: function ( url, onLoad, onProgress, onError ) {
 	load: function ( url, onLoad, onProgress, onError ) {
 
 
@@ -48,7 +48,7 @@ THREE.XHRLoader.prototype = {
 
 
 			THREE.Cache.add( url, response );
 			THREE.Cache.add( url, response );
 
 
-			if ( ( this.status === 200 && this.readyState === 4 ) || scope.ignoreHTTPStatus ) {
+			if ( ( this.status === 200 && this.readyState === 4 ) && scope.strict ) {
 
 
 				if ( onLoad ) onLoad( response );
 				if ( onLoad ) onLoad( response );
 
 
@@ -111,9 +111,9 @@ THREE.XHRLoader.prototype = {
 
 
 	}
 	}
 
 
-	setIgnoreHTTPStatus: function ( value ) {
+	setStrict: function ( value ) {
 
 
-		this.ignoreHTTPStatus = value;
+		this.strict = value;
 
 
 	}
 	}