Skip to content

Commit

Permalink
Fix __iterator, __iterate to return value
Browse files Browse the repository at this point in the history
  • Loading branch information
davecoates committed Oct 12, 2015
1 parent d5c0d92 commit 0204992
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 0204992

Please sign in to comment.