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

Removed EventDispatched.apply() to help out with tree-shaking. See #9597.

上级 0feb46d9
......@@ -19,7 +19,6 @@ import {
BufferAttribute
} from './core/BufferAttribute.js';
import { BufferGeometry } from './core/BufferGeometry.js';
import { EventDispatcher } from './core/EventDispatcher.js';
import { Face3 } from './core/Face3.js';
import { Geometry } from './core/Geometry';
import { Object3D } from './core/Object3D.js';
......@@ -911,25 +910,6 @@ Object.defineProperties( ShaderMaterial.prototype, {
//
EventDispatcher.prototype = Object.assign( Object.create( {
// Note: Extra base ensures these properties are not 'assign'ed.
constructor: EventDispatcher,
apply: function ( target ) {
console.warn( "THREE.EventDispatcher: .apply is deprecated, " +
"just inherit or Object.assign the prototype to mix-in." );
Object.assign( target, this );
}
} ), EventDispatcher.prototype );
//
Object.assign( WebGLRenderer.prototype, {
supportsFloatTextures: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册