 module.exports =
 class ScriptView extends View
   @bufferedProcess: null
-  @lang: null
-  @filename: null
 
   @content: ->
     # Display layout and outlets

      cwd: atom.project.getPath()
      env: process.env

    # Set up process and output display
    @heading.text(@lang + " - " + @filename)
    stdout = (output) => @display("stdout", output)
    stderr = (output) => @display("stderr", output)
    exit = (return_code) -> console.log "Exited with #{return_code}"


    # If we still don't have selected text, use the path
    if (not selectedText? or not selectedText) and filepath?
      filepath = editor.getPath()
      makeargs = grammarMap[lang]["byFileArgs"]
      args = makeargs(filepath)
    else
      makeargs = grammarMap[lang]["bySelectionArgs"]
      args = makeargs(selectedText)

    @run(command, args)
