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

Treedoc type throws on erasing #12

Open
legastero opened this issue May 25, 2018 · 0 comments
Open

Treedoc type throws on erasing #12

legastero opened this issue May 25, 2018 · 0 comments

Comments

@legastero
Copy link
Contributor

Erasing all of the text from a treedoc/treedoc-text throws an exception:

Uncaught (in promise) TypeError: Cannot read property '1' of undefined
    at sliceAndRemove (treedoc.js:306)
    at remove (treedoc.js:160)
    at walkDepthFirst (treedoc.js:180)
    at walkDepthFirst (treedoc.js:346)
    at Array.removeAt (treedoc.js:164)
    at Promise (type.js:177)
    at new Promise (<anonymous>)
    at EventEmitter._args [as removeAt] (type.js:175)
    at setInterval (index.js:67)
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