added EventDispatcher mixins

This commit is contained in:
Eugene
2015-01-07 03:43:09 +06:00
parent 30cfe7dedb
commit 7e0d564863
+7 -1
View File
@@ -38,5 +38,11 @@ declare module THREE {
mouseButtons: { ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE; };
update():void;
// EventDispatcher mixins
addEventListener(type: string, listener: (event: any) => void ): void;
hasEventListener(type: string, listener: (event: any) => void): void;
removeEventListener(type: string, listener: (event: any) => void): void;
dispatchEvent(event: { type: string; target: any; }): void;
}
}
}