       if gquery = window.gqueries.with_key(key)
         gquery.handle_api_result(values)
 
-    window.charts.invoke 'trigger', 'refresh'
+    @charts.invoke 'trigger', 'refresh'
     if t = window.targets
       t.invoke('update_view')
       t.update_totals()

  #
  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')
