This commit is contained in:
Joseph M. Persie 2015-11-04 20:13:12 -05:00
parent 5ca9c47f44
commit 5ddb50aca4
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ Inclusion.include = function (objects, include, options, cb) {
var self = this;
if (!include || (Array.isArray(include) && include.length === 0) ||
(Array.isArray(objects) && objects.length === 0) ||
(isPlainObject(include) && Object.keys(include).length === 0)) {
// The objects are empty
return process.nextTick(function() {