Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly scope view results. fixes #10

  • Loading branch information...
commit a429b8de96d0a1c69a89eaa0addf623c647b339e 1 parent eba97db
Jeff Miccolis miccolis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  backbone-couch.js
2  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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.