     setInterval(checkSelectionChange, this.options.POLL_INTERVAL)
 
   insertAt: (startIndex, text, attributes = {}) ->
+    oldIgnoreDomChange = @ignoreDomChanges
     @ignoreDomChanges = true
     range = if _.isNumber(startIndex) then new Tandem.Range(this, startIndex, startIndex) else startIndex
     this.preserveSelection(range.start, text.length, =>

      if lines.length == 2
        Tandem.Utils.Node.combineLines(lines[0], lines[1])
    )
    @ignoreDomChanges = false

  getAt: (startIndex, length) ->
    # - Returns array of {text: "", attr: {}}

        range = null
      )
    )
    @ignoreDomChanges = oldIgnoreDomChange

  insertNewlineAt: (startIndex) ->
    range = new Tandem.Range(this, startIndex, startIndex)
