cgiffard/node-simplecrawler — pull request #7 by mikeiannacone (2012-09-05 21:37:02+00:00)
Title: Bugfixes

Couple of bugfixes:

queue needed to be initialized later, so that setting Crawler attributes could be set before then. For example the below will work as expected now, but did not previously.
```
var myCrawler = new Crawler("localhost","/test/","8001");
myCrawler.initialProtocol = "https";
myCrawler.start();
```

Also, in newer version of Node, `domain` is now a property of `EventEmitter`, so I changed `Crawler.domain` to `crawler.host`.
See, for example, https://github.com/joyent/node/issues/3922
This leaves some inconsistent naming, such as `domainParts = host.split(/\./g)` which I've left as-is.