I would guess the code once contained a person field, that has since been removed, and the documentation hasn't been fully updated to reflect this; a few of the changes fix just that:
fixed model.item being referred to as model.person
removed the additional save() function explanation that wasn't needed (there is no person field that needs to be changed to item).
Other changes:
changed model.rebind() to model.rollback() as this is the code that is truly analogous to model.rebind { item = person2 }
removed the passage that stated the PersonModel code is not included in the code (it is); as well as the passage in the PersonModel Implementation paragraph
changed the PersonModel paragraph to explain the updated code (using Class::property instead of lambdas)
lots of fixes due to the ItemViewModel being seen as a ViewModel; once again, I would guess the code used to be for a ViewModel and was updated for an ItemViewModel
added explanations for the low-level ViewModel (since it is no longer used; the ItemViewModel is used and explained instead) and moved the paragraph explaining the differences here
I would guess the code once contained a
person
field, that has since been removed, and the documentation hasn't been fully updated to reflect this; a few of the changes fix just that:model.item
being referred to asmodel.person
save()
function explanation that wasn't needed (there is noperson
field that needs to be changed toitem
). Other changes:model.rebind()
tomodel.rollback()
as this is the code that is truly analogous tomodel.rebind { item = person2 }
PersonModel
code is not included in the code (it is); as well as the passage in thePersonModel Implementation
paragraphPersonModel
paragraph to explain the updated code (usingClass::property
instead of lambdas)ItemViewModel
being seen as aViewModel
; once again, I would guess the code used to be for aViewModel
and was updated for anItemViewModel
ViewModel
(since it is no longer used; theItemViewModel
is used and explained instead) and moved the paragraph explaining the differences here