jeromeetienne / tquery

extension system for three.js
http://jeromeetienne.github.io/tquery/
MIT License
651 stars 120 forks source link

Bug: Context, arguments missing in addEventListener/removeEventListener/dispatchEvent #182

Closed unconed closed 12 years ago

unconed commented 12 years ago

The methods for addEventListener/removeEventListener/dispatchEvent forward to destObj.bind/unbind/trigger(). When destObj is a prototype, this means events are bound to the class, not the instance.

Additionally, dispatchEvent does not pass variable arguments along to .trigger().

jeromeetienne commented 12 years ago

merged. thanks!

sorry about the time to react. quite busy atm :(