Comparing version 2.0.1 to 2.0.2
2.0.2 / 2015-07-04 | ||
================== | ||
* handle the empty result set case | ||
* add test dependency | ||
2.0.1 / 2015-06-24 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -189,2 +189,5 @@ /** | ||
// Handle the empty result set (thanks @jenbennings!) | ||
if (!pending) return next(null, out); | ||
$scope.each(function(i, el) { | ||
@@ -196,3 +199,5 @@ var $innerscope = $scope.eq(i); | ||
out[i] = obj; | ||
if (!--pending) return next(null, compact(out)); | ||
if (!--pending) { | ||
return next(null, compact(out)); | ||
} | ||
}); | ||
@@ -199,0 +204,0 @@ }); |
{ | ||
"name": "x-ray", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "structure any website", | ||
@@ -35,2 +35,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"concat-stream": "^1.5.0", | ||
"mocha": "^2.2.4", | ||
@@ -41,2 +42,2 @@ "multiline": "^1.0.2", | ||
} | ||
} | ||
} |
29304
712
5