     @stopReplayButton.disabled = true
     @stopReplayButton.innerHTML = 'Stop Replay'
     @stopReplayButton.title = 'Stop Replay'
-    @stopReplayButton.addEventListener 'click', => @stopReplay()
+    @stopReplayButton.addEventListener 'click', => @debuggerPresenter.stopReplay()
     commandsDiv.appendChild @stopReplayButton
 
     variablesHeader = document.createElement 'div'

    @stepButton.disabled = true
    @stepButton.innerHTML = 'Step'
    @stepButton.title = 'Step'
    @stepButton.addEventListener 'click', => @step()
    commandsDiv.appendChild @stepButton

    @stepOverButton = document.createElement 'button'

  getElement: ->
    return @element

  clearTableBody: (tableBody) ->
    i = tableBody.rows.length
    while i-- > 0
