Commit 171c7926 authored by nelliemckesson's avatar nelliemckesson

one more conditional

parent 4ba4cf17
......@@ -344,7 +344,9 @@ class Layout {
if (overflow) {
breakToken = this.createBreakToken(overflow, rendered, source);
if (breakToken["node"] && breakToken["offset"]) {
breakLetter = breakToken["node"].textContent.charAt(breakToken["offset"]);
if (breakToken["node"].textContent) {
breakLetter = breakToken["node"].textContent.charAt(breakToken["offset"]);
}
} else {
breakLetter = undefined;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment