WinJS internals: WinJS.Namespace._lazy

In previous blog post I wrote about WinJS._Signal. Today, it’s going to be about another WinJS internal class WinJS.Namespace._lazy.   Problem statement  It’s very common for WWA projects to load many Javascript files (I’m worried to write almost all files) in the main application startup page, default.html. Problem with this approach is that it can…

1

WinJS internals: WinJS._Signal

WinJS contains several useful classes which are unfortunately hidden (starts with ‘_’). In this post we will look at one of them, WinJS._Signal.   A common usage of this class is to manage (completes, cancels, fails) the promise. The promise itself is simple concept. But sometimes it’s awkward to complete it.    Let’s see the…

0

Lessons learned: Unit testing in Javascript

I have to start with the following: “when you write any code which you want to share with others (colleagues, public), please, attach the sample how to use it. The best samples are unit tests, or better, specification tests by example.”   In this post I want to share my feelings I’ve got from unit…

0