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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…