提交 4a887c43 编写于 作者: T Tristan VALCKE

Protect Texture against the closure circular reference bug

上级 bc13d83f
......@@ -59,7 +59,7 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
Texture.DEFAULT_IMAGE = undefined;
Texture.DEFAULT_MAPPING = UVMapping;
Texture.prototype = {
Object.assign( Texture.prototype, EventDispatcher.prototype, {
constructor: Texture,
......@@ -283,8 +283,7 @@ Texture.prototype = {
}
};
} );
Object.assign( Texture.prototype, EventDispatcher.prototype );
export { Texture };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册