I am trying to write an event handler for a custom event in WinJS. I am not too sure how this works in IE - I am creating a custom event and dispatching it -
var eventObject = document.createEvent("CustomEvent");
eventObject.initCustomEvent("dropbomb", true, true, null);
this._element.dispatchEvent(eventObject);
My handler is -
this._element.addEventListener("logtelemetry", function () {
console.log("boom");
});
Can I be certain that the handler will be called in sync and not at a later time? If so then what is the proof.