Skip to content

Commit

Permalink
fix words getting cut in two.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Jul 13, 2011
1 parent 3f69630 commit 746a604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/book2.js
Expand Up @@ -151,7 +151,7 @@
console.log('Found ENDPOINT: ' + textSnippet.substring(textSnippet.length - 20));

//Set the range now to be the text part that is *not* visible
range.setStart(textNode, textSnippet.length - 1);
range.setStart(textNode, textSnippet.length);
range.setEnd(textNode, textValue.length);

//Extract the range as a new node
Expand Down

0 comments on commit 746a604

Please sign in to comment.