Reactive-Extensions/RxJS — pull request #49 by JosephMoniz (2013-10-22 03:53:36+00:00)
Title: Fixed the loading order for node.js

When loading master in a node.js environment. You currently get the following exception:

```
/Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.js:254
__.prototype = parent.prototype;
^
TypeError: Cannot read property 'prototype' of undefined
at inherits.inherits.Rx.Internals.inherits (/Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.js:254:30)
at /Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.testing.js:362:9
at /Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.testing.js:491:7
at Observer (/Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.testing.js:18:26)
at Object. (/Users/josephmoniz/Dropbox/workspace/node/rx-router/node_modules/rx/rx.testing.js:22:2)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
```

This is caused by the rx.testing.js module being loaded before the rx.virtualtime.js module being loaded. Simply shifting the loading order around so dependencies resolve in the correct order solves this.