WinJS Promise Patterns: Listening for A Single DOM Event

Firing DOM events is the most common way for JavaScript/HTML components to send notifications to each other. If you are building a Windows Store app with JavaScript, you’ll likely need to mix asynchronous calls to Windows APIs with other logic that is waiting on DOM events. This can get messy and repetitive if you try…

1