Provide each Example with its own set of annotations #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a use case where I'd like to be able to dynamically mark a particular scenario as generated by an entry in an Examples table as pending. This patch provides a shallow clone of the original scenario annotations object for the individual table generated scenarios such that those scenarios can then be assigned a pending annotation (or any other really) and not have it effect the rest of the scenarios from that table. Normal marking of the scenario with @pending still causes all generated scenarios from the table to be pending.
I went with a shallow clone here because it was the easiest to implement. I'm not sure if ES5 code is acceptable. If ES3 would be preferred I can swap it out.