 checkFlag       = require 'app/util/checkFlag'
 AppStorage      = require 'app/appstorage'
 AppController   = require 'app/appcontroller'
+KodingAppsController = require 'app/kodingappscontroller'
 
 require('./routehandler')()
 

    {appStorageController} = kd.singletons

    @appStorage = appStorageController.storage 'Activity', '2.0'


  post: (options = {}, callback = noop) ->

    switch e.model.name
      when 'prevwindow' then @getView().openPrev()
      when 'nextwindow' then @getView().openNext()

helper =

  loadFonts: ->

    global.WebFontConfig =
      google: { families: [ 'Source+Sans+Pro:400,600:latin', 'Oxygen:400,700:latin' ] }

    options =
      identifier : 'source-sans-pro'
      url        : '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'

    KodingAppsController.appendHeadElement 'script', options

