Permalink
Browse files

Merge branch 'master' of git://github.com/kriszyp/perstore

  • Loading branch information...
smith committed Feb 16, 2010
2 parents aaaeba3 + ad5ceff commit 70a37d42097da1b6f8e05fd231f41f52201191f5
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/resource-query.js
View
@@ -180,7 +180,9 @@ exports.executeQuery = function(query, options, target){
}
var results = eval(js + "target;");
if(options.start || options.end){
- return results.slice(options.start || 0, (options.end || Infinity));
+ var totalCount = results.length;
+ results = results.slice(options.start || 0, (options.end || Infinity));
+ results.totalCount = totalCount;
}
return results;
}

0 comments on commit 70a37d4

Please sign in to comment.