Skip to content

Dispatch converted items in patch inserts

Compare
Choose a tag to compare
@bmomberger-bitovi bmomberger-bitovi released this 19 Nov 17:31
· 26 commits to master since this release

Prior to this release, listening onPatches on an ObservableArray would send the original objects that were supplied to push/unshift/splice, even if those objects were converted to an items type when added to the array.

With this release, the patch listener receives the converted object instead. This resolves some unexpected behavior when building a view based on an ObservableArray in can-view-live.

#73 for more.