arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Fixed a bug in my implementation of util.reverseEvents #56

Closed tristanls closed 12 years ago

tristanls commented 12 years ago

Fixed a bug in util.reverseEvents ( was missing hasOwnProperty check in "for in " loop ).

Array.prototype.indexOf was getting attached as an event and causing:

"Uncaught TypeError: Cannot call method 'apply' of undefined"

@arturadib what are your thoughts on where regression tests like the one attached here should go?

arturadib commented 12 years ago

Great thanks. Let's keep those tests in core until we have enough to factor them out.