     return textNodes[start..end]
 
 # Public: A range suitable for storing in local storage or serializing to JSON.
-exports.SerializedRange = class SerializedRange
+class SerializedRange
 
   # Public: Creates a SerializedRange
   #

TEXT_NODE = 3


exports.splitBoundaries = splitBoundaries = (range) ->
  {startContainer, startOffset, endContainer, endOffset} = range

  if isTextNode(endContainer)

  while node? and not contains(node, other)
    node = node.parentNode
  return node


# Export the public module interface.
module.exports = {
  BrowserRange
  NormalizedRange
  SerializedRange
  splitBoundaries
}
