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…


WinJS Promise Pitfalls

I’ve been using WinJS promises in Windows Store apps for the past couple years. Async programming is much different than the standard synchronous, imperative programming most of us are used to. Here are a few lessons I’ve learned about using WinJS Promises, although these lessons could apply to any implementation of the Common JS Promises/A…


hello, world