 
 # Dashboard loaded and ready
 Dashing.on 'ready', ->
-  window.SwitcherControls = SwitcherControls
   # If multiple widgets per list item, switch them periodically
   $('.gridster li').each (index, listItem) ->
     $listItem = $(listItem)

  start: () ->
    @addElements()
    @$timer = $.timer(@updateTimer, @incrementTime, true)
    @paused = false

  addElements: () ->
    @$nextDashboardNameContainer = $("<span id='dc-switcher-next-name'></span>")
    @$countdown = $("<span id='dc-switcher-countdown'></span>")
    @$manualSwitcher = $("<span id='dc-switcher-arrow' class='fa fa-forward'></span>").
      html(@arrowContent).
      click () =>
        location.href = "/#{@nextDashboardName}"
    @$switcherStopper = $("<span id='dc-switcher-stopper' class='fa fa-pause'></span>").
      html(@stopTimerContent).
      click(@pause)
    @$elements.


  start: (interval=60000) ->
    interval = parseInt(interval, 10)
    @maxPos = @dashboardNames.length - 1

    # Skip switching if no names defined
