 
   changeHandler: () =>
     @debouncedRenderPreview()
-    # pane = atom.workspace.paneForUri @getUri()
-    # if pane? and pane isnt atom.workspace.getActivePane()
-    #   pane.activateItem @
 
   handleEvents: () ->
     currEditor = atom.workspace.getActiveEditor()

          editor.setText result
          @redraw()
          @hideViewPreview()
        # Check if result is a Space-pen View (jQuery)
        else if result instanceof $
          # Is SpacePen View
          @renderViewForPreview(result)
        else
          # Unknown result type
          @hideViewPreview() # Show Editor by default
          return @showError new Error("Unsupported result type.")

      # Start preview processing

      # Create Callback
      callback = (error, result) =>
        @hideMessage()
        # Force focus on the editor
        focusOnEditor = =>
          if @lastEditor?
            # console.log "Focus on last editor!", @lastEditor
            uri = @lastEditor.getUri()
            if pane = atom.workspace.paneForUri(uri)
              # console.log pane
              pane.activate()

        if error?
          focusOnEditor()
          return @showError error
        # Check if result is a string and therefore source code
        if typeof result is "string"
