fixed custom event cancellation bug in IE.