Skip to content
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

Error message displayed twice #713

Open
cmontella opened this issue Dec 15, 2016 · 2 comments
Open

Error message displayed twice #713

cmontella opened this issue Dec 15, 2016 · 2 comments
Labels

Comments

@cmontella
Copy link
Contributor

For example, try to use a function that isn't defined. The error will be displayed twice momentarily, and then the duplicate will disappear after a moment.

image

@joshuafcole
Copy link
Contributor

It's interesting that the font size on each is different. I don't know why that would be.

@Cormac-Williams
Copy link
Contributor

Cormac-Williams commented Jan 19, 2017

This is because the some HTML and text is being created in the comment function of Comments object of the IDE and in the DocumentCommentSpan in Spans.ts. The Spans seems to be the more modern and is the first to appear. When the render function gets called on the IDE object it drills through and calls the render function of the Comments object and injects the new DOM objects as children into the DocumentCommentSpan.

Relevant lines are around IDE and Span

Regards,
Cormac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants