Added support for multiple custom event handlers on IE <= 8.