提交 36c7a7be 编写于 作者: M Mr.doob

Removed statusDomElement.

上级 e7f7d51f
......@@ -69,11 +69,6 @@
Extract the base from the URL.
</div>
<h3>[method:DOMElement addStatusElement]()</h3>
<div>
Add a DOM element to indicate the progress and return the DOMElement
</div>
<h2>Source</h2>
......
......@@ -2268,14 +2268,6 @@
"!type": "boolean",
"!doc": "If true, the ajax request will use cookies."
},
"showStatus": {
"!type": "bool",
"!doc": "If true, show loading status in the statusDomElement."
},
"statusDomElement": {
"!type": "DOMElement",
"!doc": "This is the recipient of status messages."
},
"onLoadStart": {
"!type": "function",
"!doc": "The default is a function with empty body."
......@@ -2311,26 +2303,14 @@
"extractUrlBase": {
"!type": "fn(url: string) -> string",
"!doc": "Extract the base from the URL."
},
"addStatusElement": {
"!type": "fn() -> DOMElement",
"!doc": "Add a DOM element to indicate the progress and return the DOMElement"
}
},
"!doc": "A loader for loading objects in JSON format.",
"!type": "fn(showStatus: bool)"
"!type": "fn()"
},
"Loader": {
"!url": "http://threejs.org/docs/#Reference/loaders/Loader",
"prototype": {
"showStatus": {
"!type": "bool",
"!doc": "If true, show loading status in the statusDomElement."
},
"statusDomElement": {
"!type": "DOMElement",
"!doc": "This is the recipient of status messages."
},
"onLoadStart": {
"!type": "function",
"!doc": "The default is a function with empty body."
......@@ -2362,14 +2342,10 @@
"extractUrlBase": {
"!type": "fn(url: string) -> string",
"!doc": "Extract the base from the URL."
},
"addStatusElement": {
"!type": "fn() -> DOMElement",
"!doc": "Add a DOM element to indicate the progress and return the DOMElement"
}
},
"!doc": "Base class for implementing loaders.",
"!type": "fn(showStatus: bool)"
"!type": "fn()"
},
"LoadingManager": {
"!url": "http://threejs.org/docs/#Reference/loaders/LoadingManager",
......
......@@ -19,21 +19,6 @@ THREE.BinaryLoader.prototype = {
constructor: THREE.BinaryLoader,
// Deprecated
get statusDomElement () {
if ( this._statusDomElement === undefined ) {
this._statusDomElement = document.createElement( 'div' );
}
console.warn( 'THREE.BinaryLoader: .statusDomElement has been removed.' );
return this._statusDomElement;
},
// Load models generated by slim OBJ converter with BINARY option (converter_obj_three_slim.py -t binary)
// - binary models consist of two files: JS and BIN
// - parameters
......
......@@ -16,9 +16,9 @@
( function() {
THREE.FBXLoader = function ( showStatus, manager ) {
THREE.FBXLoader = function ( manager ) {
THREE.Loader.call( this, showStatus );
THREE.Loader.call( this );
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
this.textureLoader = null;
this.textureBasePath = null;
......
......@@ -33,9 +33,9 @@
* - shadow support.
*/
THREE.MMDLoader = function ( showStatus, manager ) {
THREE.MMDLoader = function ( manager ) {
THREE.Loader.call( this, showStatus );
THREE.Loader.call( this );
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
this.defaultTexturePath = './models/default/';
......
......@@ -12,25 +12,6 @@ THREE.CTMLoader = function () {
THREE.Loader.call( this );
// Deprecated
Object.defineProperties( this, {
statusDomElement: {
get: function () {
if ( this._statusDomElement === undefined ) {
this._statusDomElement = document.createElement( 'div' );
}
console.warn( 'THREE.BinaryLoader: .statusDomElement has been removed.' );
return this._statusDomElement;
}
},
} );
};
THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );
......
......@@ -362,16 +362,6 @@ 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, {
wrapAround: {
get: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册