   #
   update_merit_order_checkbox: =>
     $("#settings_use_merit_order").attr('checked', @settings.merit_order_enabled())
-


    # initial charts render, takes care of locked charts
    @charts.load_charts()


  setup_fce_toggle: ->
    if element = $('.slide .fce-toggle')

class @AppView extends Backbone.View
  initialize: ->
    @settings    = new Setting({api_session_id: globals.api_session_id})
    @sidebar     = new SidebarView()
    @scenario    = new Scenario()
    @router      = new Router()
    @merit_order = new MeritOrder(this)
    Backbone.history.start()

