Permalink
Browse files

Specify collection length

  • Loading branch information...
1 parent a31a10a commit f59cf0ddbf1f51a117f053806bd92aaad0103891 @1602 committed Oct 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +1 −0 lib/abstract-class.js
  3. +0 −1 lib/validatable.js
View
@@ -2,7 +2,7 @@ language: node_js
node_js:
- 0.4.12
- 0.6
- - 0.8.9
+ - 0.8.11
services:
- mongodb
- redis-server
@@ -340,6 +340,7 @@ AbstractClass.all = function all(params, cb) {
if (data && data.countBeforeLimit) {
collection.countBeforeLimit = data.countBeforeLimit;
}
+ collection.length = data.length;
cb(err, collection);
}
else
View
@@ -420,7 +420,6 @@ function validationFailed(inst, v, cb) {
}
function skipValidation(inst, conf, kind) {
- console.log(conf, kind, inst.hasOwnProperty(conf[kind]), inst[conf[kind]]);
var doValidate = true;
if (typeof conf[kind] === 'function') {
doValidate = conf[kind].call(inst);

0 comments on commit f59cf0d

Please sign in to comment.