Browse files

Merge remote-tracking branch 'jiaweihli/master'

Fixes #5, satisfying pull request 5.
  • Loading branch information...
2 parents b740939 + 96744fd commit 0e90c6b4c57a1f6ba5a6269bb5de427a348161d9 @amacdougall committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/alanmacdougall/underscore/_.as
View
2 src/com/alanmacdougall/underscore/_.as
@@ -202,7 +202,7 @@ public var _:* = (function():Function {
* iterator is omitted, tests the elements themselves for truthiness.
*/
_.all = function(obj:*, iterator:Function = null, context:Object = null):Boolean {
- if (obj == null || _(obj).isEmpty()) return false;
+ if (obj == null) return false;
// TO DO: benchmark native Array.every
iterator = iterator || identity;
var result:Boolean = true;

0 comments on commit 0e90c6b

Please sign in to comment.