       data: @data[retName]
 
   showRetention: (retName) ->
-    @currentRetName = retName
+    @retention = retName
     @renderChart()
 
     @retentionsMenu.select(retName)

  editAlerts: ->
    ae = Ext.create "Muleview.view.AlertsEditor",
      key: @key
      retention: @currentRetName
      data: @data[@currentRetName][@key]
    ae.show()

  updateZoomStatsAndHighlight: (timestampMin, timestampMax) ->

        lightChart.show()

    @resetRefreshTimer()
    Muleview.event "viewChange", @keys, @retention

  fixDuplicateAndMissingTimestamps: (data) ->
    recordsByTimestamp = {}
