提交 22ed3e63 编写于 作者: M Mr.doob

JSONLoader: backwards compatibility.

上级 f3d6a265
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册