Browse Source

Added EventDispatcher to Object3D.

Mr.doob 12 years ago
parent
commit
e347fc04de
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/core/Object3D.js

+ 5 - 0
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();