                   lastPart = nextPart.splitText range.start - index
                   nextPart = null
                   remainingPart = lastPart.previousSibling
-#                  if lastPart.data isnt range.yields
+ #                 if lastPart.data isnt range.yields
 #                    console.log "End cut. Wanted: '" + range.yields + "'; got: '" + lastPart.data + "'."
 #                  else
 #                    console.log "Done end cut."

  uniteRanges: (ranges) ->
    united = []
    delete lastRange
    for range in ranges.sort @compareRanges
      do (range) =>
        if lastRange? and lastRange.end >= range.start
          # there was a previous range, and we can continue it
          if range.end > lastRange.end
#            console.log "Old yields: '" + lastRange.yields + "'."

            for range in ranges
              do (range) =>
                if range.start is 0
                  # This is the first range, and it starts at the start of the node
                  nextPart = nextPart.splitText range.end
                  firstPart = nextPart.previousSibling
#                  if firstPart.data isnt range.yields
