mootools/mootools-core — Issue #2162: Custom event args
Author: rhuynh
Created: 2011-12-07 22:30:35+00:00
State: open

There appears to be a bug in mootools 1.4.2 when firing a custom event where the argument passed to the handler is a form or select element. In the handler function, instead of receiving the form or select element as the argument, what you get instead is the first child of that element. In the case of the form, you'll receive the first form field while in the select element, you'll receive the first option. This wasn't an issue in mootools 1.2.5. Here's an example in jsfiddler:

http://jsfiddle.net/ZNrwB/