pgte/alfred — pull request #16 by ramitos (2012-01-04 21:33:35+00:00)
Title: issues #13, #14 and #15

# [Issue #13](https://github.com/pgte/alfred/issues/13)
I didn't found any reference to the variable ```value```, so i just deleted and everything worked as expected.

# [Issue #14](https://github.com/pgte/alfred/issues/14)
Instead of returning a stream, it calls the callback whith the stream as parameter.

So, insted of

var stream = article.find({date: {$range: {$start: null, $end: null}}}).stream();

stream.on('record', function(record) {
console.log(record);
});
stream.on('error', function(err) {
throw(err);
});
stream.on('end', function() {
console.log('ended');
});

it should now be

article.find({date: {$range: {$start: null, $end: null}}}).stream(function (stream) {
stream.on('record', function(record) {
console.log(record);
});
stream.on('error', function(err) {
throw(err);
});
stream.on('end', function() {
console.log('ended');
});
});

# [Issue #15](https://github.com/pgte/alfred/issues/15)
Tried ```array.map``` and ```proccess.nextTick``` to prevent the RangeError, but only worked using async's ```forEachSeries```