Browse Source

Moved JSONLoader.statusDomElement to Three.Legacy. Fixes #9033.

Mr.doob 9 years ago
parent
commit
b558121665
2 changed files with 10 additions and 15 deletions
  1. 10 0
      src/Three.Legacy.js
  2. 0 15
      src/loaders/JSONLoader.js

+ 10 - 0
src/Three.Legacy.js

@@ -362,6 +362,16 @@ Object.defineProperties( THREE.BufferGeometry.prototype, {
 
 
 //
 //
 
 
+Object.defineProperties( THREE.JSONLoader.prototype, {
+	statusDomElement: {
+		get: function () {
+			console.error( 'THREE.JSONLoader: .statusDomElement has been removed.' );
+		}
+	}
+} );
+
+//
+
 Object.defineProperties( THREE.Material.prototype, {
 Object.defineProperties( THREE.Material.prototype, {
 	wrapAround: {
 	wrapAround: {
 		get: function () {
 		get: function () {

+ 0 - 15
src/loaders/JSONLoader.js

@@ -20,21 +20,6 @@ THREE.JSONLoader = function ( manager ) {
 
 
 Object.assign( THREE.JSONLoader.prototype, {
 Object.assign( THREE.JSONLoader.prototype, {
 
 
-	// Deprecated
-
-	get statusDomElement () {
-
-		if ( this._statusDomElement === undefined ) {
-
-			this._statusDomElement = document.createElement( 'div' );
-
-		}
-
-		console.warn( 'THREE.JSONLoader: .statusDomElement has been removed.' );
-		return this._statusDomElement;
-
-	},
-
 	load: function( url, onLoad, onProgress, onError ) {
 	load: function( url, onLoad, onProgress, onError ) {
 
 
 		var scope = this;
 		var scope = this;