Permalink
Browse files

Properly scope view results. fixes #10

  • Loading branch information...
1 parent eba97db commit a429b8de96d0a1c69a89eaa0addf623c647b339e @miccolis miccolis committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone-couch.js
View
@@ -53,7 +53,7 @@ module.exports = function(config) {
var url = '_design/backbone/_rewrite' + getUrl(model);
db.view(url, {}, function(err, res) {
if (err) return error(err);
- data = [];
+ var data = [];
_.each(res.rows, function(val) {
data.push(val.doc);
});

0 comments on commit a429b8d

Please sign in to comment.