SteveSanderson/knockout — pull request #217 by mtscout6 (2011-11-30 15:48:36+00:00)
Title: Added a build for a NodeJs module. Also, added window and navigator to function wrapper.

I added a build for a NodeJs module. This is to facilitate browser-less unit testing through NodeJs. It simply creates a dummy dom structure and initializes knockout so tests can run. The dom structure is very empty, but the point is not to test the dom in browser-less unit testing.

In order to facilitate this I also added document and navigator to the function wrapper that is applied during the build. Similar to how document and undefined were being wrapped in.