From e347fc04de0e4ae18d2c426e2545afc7c2742bb3 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 23 Apr 2013 16:28:47 +0200 Subject: [PATCH] Added EventDispatcher to Object3D. --- src/core/Object3D.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/Object3D.js b/src/core/Object3D.js index 66cb3c7897..6e76322d65 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -50,6 +50,11 @@ THREE.Object3D.prototype = { constructor: THREE.Object3D, + addEventListener: THREE.EventDispatcher.prototype.addEventListener, + hasEventListener: THREE.EventDispatcher.prototype.hasEventListener, + removeEventListener: THREE.EventDispatcher.prototype.removeEventListener, + dispatchEvent: THREE.EventDispatcher.prototype.dispatchEvent, + applyMatrix: function () { var m1 = new THREE.Matrix4(); -- GitLab