diff --git a/examples/js/loaders/AWDLoader.js b/examples/js/loaders/AWDLoader.js index 727ba732d5d50b4e8820ef51b2ebd69f06b05e56..6634bedad93511f7fd4e6d05a76e2f0641b4a038 100644 --- a/examples/js/loaders/AWDLoader.js +++ b/examples/js/loaders/AWDLoader.js @@ -116,8 +116,7 @@ THREE.AWDLoader = (function (){ }; - AWDLoader.prototype = new THREE.Loader(); - + AWDLoader.prototype = Object.create( THREE.Loader.prototype ); AWDLoader.prototype.constructor = AWDLoader; AWDLoader.prototype.load = function ( url, callback ) { diff --git a/examples/js/loaders/gltf/glTFLoader.js b/examples/js/loaders/gltf/glTFLoader.js index c4174a8618d9662d4536444a1e229506843496f7..d079698a9f9deb0ffcdcdef2c803336e374fe734 100644 --- a/examples/js/loaders/gltf/glTFLoader.js +++ b/examples/js/loaders/gltf/glTFLoader.js @@ -16,7 +16,7 @@ THREE.glTFLoader = function (showStatus) { THREE.Loader.call( this, showStatus ); } -THREE.glTFLoader.prototype = new THREE.Loader(); +THREE.glTFLoader.prototype = Object.create( THREE.Loader.prototype ); THREE.glTFLoader.prototype.constructor = THREE.glTFLoader; THREE.glTFLoader.prototype.load = function( url, callback ) {