Model.reset() doesn't work as expected
Closed this issue · 1 comments
Draggha commented
Hello there!
Due to this code the reset function doesn't reset the state to the original attributes. Switching it to this._attributes = cloneDeep(this._originalAttributes)
should fix it.
Draggha commented
Update: reset()
is now meant to reset the isDirty
state und should not be used to rollback changes to attributes. My PR provides a rollback()
function which does exactly this. Once the PR is merged this issue can be closed.