Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE10 dispatchEvent calls wrong listeners

$
0
0

Hi all,

I am having a strange problem in a web application running on IE10 (same behavior in Windows 8 or Window 7 preview).

My application creates and dispatches native events using these calls:

var e = document.createEvent("HTMLEvents");
e.initEvent("myEventType", true, true);
element.dispatchEvent(e);

That works most of the time and correctly calls the listeners registered for the specified event type, but in some rare cases this causes wrong event listeners to be called: listeners that were added for a completely different event type are called, and the "right" event listeners are not called.

Has anybody seen dispatchEvent going crazy like this on IE10? Is this a known bug?

Thanks for any help/hints... ;^)

    Eric


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>