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

Endless loop #4

Open
sonny89 opened this issue Sep 14, 2015 · 0 comments
Open

Endless loop #4

sonny89 opened this issue Sep 14, 2015 · 0 comments

Comments

@sonny89
Copy link

sonny89 commented Sep 14, 2015

I wrote some text or any whitespace character (newline in my case) in the DOM element to render to and this results an endless loop.
For example: <div id='table-target'>text</div>. The firstChild of the div will be a TextNode.
This line of the code results the endless loop:
while (this.el.firstChild) { this.el.remove(this.el.firstChild); }

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

No branches or pull requests

1 participant