Repository navigation
Simplify annotation data passing - #6232
Merged
Snuffleupagus merged 1 commit intoJul 19, 2015
Merged
Conversation
timvandermeij
force-pushed
the
annotations-data-passing
branch
from
July 18, 2015 15:57
eebb555 to
981202f
Compare
Member
There was a problem hiding this comment.
While you're at it, remove the parentheses. They are not required, and do not enhance the readability of this line.
Collaborator
Author
There was a problem hiding this comment.
Done in the new commit.
timvandermeij
force-pushed
the
annotations-data-passing
branch
from
July 19, 2015 12:03
981202f to
995c5ba
Compare
Collaborator
Author
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 |
Collaborator
Author
|
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 |
From: Bot.io (Windows)SuccessTotal script time: 18.28 mins
|
From: Bot.io (Linux)SuccessTotal script time: 18.76 mins
|
Snuffleupagus
added a commit
that referenced
this pull request
Jul 19, 2015
Simplify annotation data passing
Collaborator
|
Looks good, thanks! |
1 task
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We can avoid the
getDatamethod call by just accessing thedataproperty on the annotation object. We can avoidget annotationRefsby directly using its result (like all other methods in that file). Finally,getAnnotationsinapi.jscan be simplified by interchanging the cases, i.e., always returing the promise and only creating it when it does not exist yet.I have verified with 15 test files with different annotation types (Link, Text, Widget, Markup, et cetera) that rendering has not changed.
@Snuffleupagus Could you review this PR?