Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 05f58d3a08 Fix a bug in env-js re. insertBefore. 2011-04-09 12:03:52 -07:00
Michael Bostock 66c7357cc2 Force -0800 timezone for tests. 2011-03-25 14:03:46 +01:00
Michael Bostock 1be121ae20 Unplug env-js' timer module.
This was breaking setTimeout and setInterval in Node, since I've already
unplugged env-js' event loop. With that out of the way, we can write tests for
transitions!
2011-03-04 16:35:16 -08:00
Michael Bostock 7df63b3cfe Allow env-js to be require'd.
This fixes a bug with the usage of `require` in env-js, such that env-js now
uses proper relative paths rather than unshifting "." onto `require.paths`. The
behavior of `require` is documented here:

  <http://nodejs.org/docs/v0.4.2/api/modules.html#all_Together...>

With this change in place, it's now possible to use env-js simply by require'ing
it from a script, rather than having env-js host and eval.

Also, this commit changes the initialization of env-js, such that the initial
document is immediately available when the env-js module is loaded. And, the
event loop is disabled so that env-js shuts down cleanly. This probably breaks
some parts of env-js, but it makes it much easier to use so I'm going to play
with it a bit.
2011-03-04 13:42:49 -08:00
Michael Bostock 3568ecac2c Fix env-js node 0.4.2 incompatibility.
The `console` global is read-only; it cannot be reassigned.
2011-03-04 11:48:14 -08:00
Michael Bostock 1fe1b466d9 Add lib/env-js. 2011-03-04 11:47:19 -08:00