     @frame.style.border = "none"
     @frame.style.width = "100%"
     @frame.onload = @frameDidLoadDefaultDocument
+    @frame.onblur = @frameDidLoseFocus
 
     bottomContainer = document.createElement("div")
 

  frameDidLoadStylesheet: =>
    @updateFrame()

  didClickPlayButton: =>
    @delegate?.playerViewDidClickPlayButton?()


    element: deserializer.getElement()
    range: deserializer.getRange()

  updateFrame: =>
    @frame.style.height = 0
    @frame.style.height = @body.scrollHeight + "px"
    @frame.focus()
    @frame.contentWindow.focus()

  clear = (element) ->
    element.removeChild(element.lastChild) while element.lastChild
