pgte/alfred — Issue #14: stream has no method 'on'
Author: ramitos
Created: 2011-12-22 04:59:27+00:00
State: open

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');
});

throws

TypeError: Object function (callback) {
return chainable.execute(callback);
} has no method 'on'
at checkRemoved (/Users/ramitos/Sites/node/quodsi/helpers/db.js:219:9)
at /Users/ramitos/Sites/node/quodsi/helpers/db.js:158:3
at /usr/local/lib/node_modules/async/lib/async.js:105:25
at /Users/ramitos/Sites/node/quodsi/helpers/db.js:184:11
at /usr/local/lib/node_modules/alfred/lib/alfred/meta/model/model.js:203:9
at /usr/local/lib/node_modules/alfred/lib/alfred/meta/finder.js:204:13
at /usr/local/lib/node_modules/alfred/lib/alfred/key_map.js:151:9
at /usr/local/lib/node_modules/alfred/lib/alfred/collection.js:121:7
at /usr/local/lib/node_modules/alfred/lib/alfred/files/file.js:207:11
at Object.wrapper [as oncomplete] (fs.js:254:17)