Commit a34454b0 authored by nelliemckesson's avatar nelliemckesson

one more conditional

parent 171c7926
......@@ -343,10 +343,8 @@ class Layout {
if (overflow) {
breakToken = this.createBreakToken(overflow, rendered, source);
if (breakToken["node"] && breakToken["offset"]) {
if (breakToken["node"].textContent) {
breakLetter = breakToken["node"].textContent.charAt(breakToken["offset"]);
}
if (breakToken["node"] && breakToken["offset"] && 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