Skip to content

Commit

Permalink
return the result of #each for StreamLikeSeqence#split, #match
Browse files Browse the repository at this point in the history
  • Loading branch information
dtao committed Dec 30, 2013
1 parent b6c31fb commit 03a89ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4712,7 +4712,7 @@
done = false,
i = 0;

this.parent.each(function(chunk) {
return this.parent.each(function(chunk) {
Lazy(chunk).split(delimiter).each(function(piece) {
if (fn(piece, i++) === false) {
done = true;
Expand Down Expand Up @@ -4747,7 +4747,7 @@
done = false,
i = 0;

this.parent.each(function(chunk) {
return this.parent.each(function(chunk) {
Lazy(chunk).match(pattern).each(function(match) {
if (fn(match, i++) === false) {
done = true;
Expand Down

0 comments on commit 03a89ab

Please sign in to comment.