Skip to content

Commit

Permalink
Merge pull request #10 from davecoates/fix/map_iterate
Browse files Browse the repository at this point in the history
Fix __iterator, __iterate on Map to return value
  • Loading branch information
Gozala committed Oct 15, 2015
2 parents d5c0d92 + 0204992 commit 5ee84ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ class TypedMap extends BaseImmutableMap {
return result
}
__iterator(type, reverse) {
this[$store].__iterator(type, reverse)
return this[$store].__iterator(type, reverse)
}

__iterate(f, reverse) {
this[$store].__iterate(f, reverse)
return this[$store].__iterate(f, reverse)
}
}
TypedMap.prototype[Typed.DELETE] = TypedMap.prototype.remove
Expand Down

0 comments on commit 5ee84ac

Please sign in to comment.