     breakpoints = ee.lineAttributes.stop[..]
     for l in breakpoints then cm.setGutterMarker l, 'breakpoints', createBreakpointElement()
     originalBreakpoints = breakpoints.join()
-    if opener then $('title').text ee.name
+    if opener then $('title', $e[0].ownerDocument).text ee.name
     return
   hasFocus: -> window.focused && cm.hasFocus()
   focus: -> (if !window.focused then window.focus()); cm.focus(); return

autocompletion = require './autocompletion'
prefs = require './prefs'
{rLetter} = require './codemirror-apl-mode'

createBreakpointElement = -> bp = document.createElement 'div'; bp.setAttribute 'class', 'breakpoint'; bp.innerHTML = '●'; bp

editorHTML = do ->
  b = (cssClasses, description) -> "<a href='#' class='#{cssClasses} tb-button' title='#{description}'></a>"

        volatileLine = null
    return

  createBreakpointElement = ->
    bp = $e[0].ownerDocument.createElement 'div'; bp.setAttribute 'class', 'breakpoint'; bp.innerHTML = '●'; bp

  cm.dyalogCommands =
    ED: -> emit 'Edit', win: id, text: cm.getValue(), pos: cm.indexFromPos cm.getCursor(); return
    QT: -> emit 'CloseWindow', win: id; return
