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.
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.
I'm sorry @GordonSmith I have a doubt due to this intermediate renderer definition. Actually, the
this._document
pass here is not use as these two callbacks are not passing through the received argument (and it does not make sense to allow a document other thanthis._document
to be passed).And as this is the only place
Private.realizeAreaConfig
is called, it sounds that your initial commit only removingthis._document
inPrivate.realizeTabAreaConfig
is the only needed change, isn't it?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.
I think its ok as they are just there to satisfy the IRenderer and resolve back onto itself (which is your point):
IOW changing to this:
Ends up exactly the same (again this is the point your making?)
You could argue that the following is better from a self-documenting point of view?
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.
Thanks for the detailed answer. I agree with your latest proposal:
It will indeed be a better self-documenting code. I opened #285 to add this.