|
@@ -5,6 +5,13 @@
|
|
|
|
|
|
THREE.JSONLoader = function ( manager ) {
|
|
|
|
|
|
+ if ( typeof manager === 'boolean' ) {
|
|
|
+
|
|
|
+ console.warn( 'THREE.JSONLoader: showStatus parameter has been removed from constructor.' );
|
|
|
+ manager = undefined;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
|
|
|
|
|
|
this.withCredentials = false;
|
|
@@ -15,6 +22,19 @@ THREE.JSONLoader.prototype = {
|
|
|
|
|
|
constructor: THREE.JSONLoader,
|
|
|
|
|
|
+ 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 ) {
|
|
|
|
|
|
var scope = this;
|