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

Merge branch 'patch-15' of https://github.com/gero3/three.js into dev

......@@ -74,16 +74,13 @@ THREE.EventDispatcher.prototype = {
},
dispatchEvent: function () {
var array = [];
return function ( event ) {
dispatchEvent: function ( event ) {
if ( this._listeners === undefined ) return;
var listeners = this._listeners;
var listenerArray = listeners[ event.type ];
var array = [];
if ( listenerArray !== undefined ) {
......@@ -105,8 +102,6 @@ THREE.EventDispatcher.prototype = {
}
};
}()
}
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册