r58 中的 EventDispatcer 发生了一些变化,我无法向对象添加更多自定义事件。根据向 Object3D 添加自定义事件,我曾经拥有:
var spinner_obj = new THREE.Object3D();
THREE.EventDispatcher.call( spinner_obj );
spinner_obj.addEventListener('start', function(event) {alert("GOT THE EVENT");});
spinner_obj.dispatchEvent({type:'start'});
但这在 r58 中停止工作并出现错误消息:
Object [object Object] has no method 'addEventListener'