   updateSize: -> @cm.setSize @$e.width(), @$e.parent().height() - @$e.position().top - 28; return
 
   open: (ee) ->
-    @cm.setValue @originalText = ee.text; @cm.clearHistory(); @cm.focus()
+    @cm.setValue @otext = ee.text; @cm.clearHistory(); @cm.focus()
     # Constants for entityType:
     # DefinedFunction     1
     # SimpleCharArray     2

    $r.focus().select(); @highlightSearch(); return
  EP: ->
    v = @cm.getValue()
    if v != @originalText || @breakpoints.join() != @originalBreakpoints
      for l in @breakpoints then @cm.setGutterMarker l, 'breakpoints', null
      @emit 'SaveChanges', win: @id, text: @cm.getValue(), attributes: stop: @breakpoints[..].sort (x, y) -> x - y
    else
      @emit 'CloseWindow', win: @id
    return

    @cm.setOption 'readOnly', ee.readOnly || ee.debugger
    line = ee.currentRow; col = ee.currentColumn || 0; if line == col == 0 && ee.text.indexOf('\n') < 0 then col = ee.text.length
    @cm.setCursor line, col; @cm.scrollIntoView null, @$e.height() / 2
    @bp = ee.lineAttributes.stop[..]
    for l in @bp then @cm.setGutterMarker l, 'breakpoints', @createBreakpointElement()
    @obp = @bp.join()
    if D.floating then $('title', @$e[0].ownerDocument).text ee.name
    return
  hasFocus: -> window.focused && @cm.hasFocus()
