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

Ensure targetNode matches leaf.length in formatText #311

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

thomsbg
Copy link
Contributor

@thomsbg thomsbg commented Mar 19, 2015

Without this call to split(), the targetNode may outgrow leaf.length, causing
the call to format.add(targetNode, value) to operate on more than was intended.

Fixes #310

Without this call to split(), the targetNode may outgrow leaf.length, causing
the call to format.add(targetNode, value) to operate on more than was intended.

Fixes slab#310
jhchen added a commit that referenced this pull request Mar 20, 2015
Ensure targetNode matches leaf.length in formatText
@jhchen jhchen merged commit cbb6f99 into slab:develop Mar 20, 2015
@jhchen
Copy link
Member

jhchen commented Mar 20, 2015

Thanks for the fix!

@thomsbg thomsbg deleted the fix-remove-format branch October 7, 2015 13:35
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

Successfully merging this pull request may close these issues.

"Cannot read property 'parentNode' of null" error thrown when removing format
2 participants