-
-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from jockri/replace_data
Allow Post Serialize Event to overwrite existing data
- Loading branch information
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This sounds as if it would require the data to actually exist, but since it does not throw an exception, a better name is probably just
setData
and also to deprecate theaddData
method.The limitation in addData was only useful as long as it was enforced throughout the class to allow streaming output (which I never implemented), but as soon as there is a method that can overwrite data, I have no use case for addData anymore.