 class AutoTailer extends Backbone.View
 
     initialize: ({@requestId, @autoTailFilename, @autoTailTimestamp}) ->
-        
+
         @history     = new RequestHistoricalTasks [], {@requestId}
 
         @activeTasks = new RequestTasks [],

    showAutoTailWaitingDialog: ->
        vex.dialog.alert
            overlayClosesOnClick: false
            message: autoTailWaitingTemplate 
                autoTailFilename: @autoTailFilename
            buttons: [
                $.extend _.clone(vex.dialog.buttons.NO), text: 'Close'



    # Start polling for task changes, and check
    # Task History changes in case we need
    # to back out of the file redirect
    startAutoTailPolling: ->
        @showAutoTailWaitingDialog()
        @stopAutoTailPolling()

        @listenTo @history, 'reset', @handleHistoryReset
        @listenTo @activeTasks, 'reset', @handleActiveTasksAdd

        @autoTailPollInterval = interval 2000, =>
            if @autoTailTaskFiles
