-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds method to reset data object to last snapshot #1952
base: master
Are you sure you want to change the base?
Conversation
Useful for use in combination with a form e.g. when the user cancels the form the data object can be mapped back to its last known state. |
@@ -808,6 +805,12 @@ exports.RawDataService = DataService.specialize(/** @lends RawDataService.protot | |||
* [addRawData()]{@link RawDataService#addRawData} | |||
* call that invoked this method. | |||
*/ | |||
mapRawDataToObject: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't that break backward compatibility or are we now in position to do so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix - the code comments were not lined up so I put it over the right function. There was a merge conflict and I removed the wrong block.
Inadvertently removed support for backwards compability.
This commit can be dropped after this PR is merged: #1952
This commit can be dropped after this PR is merged: #1952
This commit can be dropped after this PR is merged: #1952
@marchant - per our discussion, I added the capability to reset a single data object.