-$ = require 'jquery'
-globals = require 'globals'
-getAppOptions = require './util/getAppOptions'
-getAppClass = require './util/getAppClass'
-kd = require 'kd'
+$                    = require 'jquery'
+_                    = require 'underscore'
+globals              = require 'globals'
+getAppOptions        = require './util/getAppOptions'
+getAppClass          = require './util/getAppClass'
+kd                   = require 'kd'
 KDModalViewWithForms = kd.ModalViewWithForms
-KDNotificationView = kd.NotificationView
-KDObject = kd.Object
-KDOnOffSwitch = kd.OnOffSwitch
-KDSelectBox = kd.SelectBox
-KDView = kd.View
-FSHelper = require './util/fs/fshelper'
+KDNotificationView   = kd.NotificationView
+KDObject             = kd.Object
+KDOnOffSwitch        = kd.OnOffSwitch
+KDSelectBox          = kd.SelectBox
+KDView               = kd.View
+FSHelper             = require './util/fs/fshelper'
 KodingAppsController = require './kodingappscontroller'
 
-
-module.exports = class ApplicationManager extends KDObject
+module.exports =
+
+class ApplicationManager extends KDObject
 
   ###
 

    {name} = appInstance.getOptions()
    router.setPageTitle name  if name
    @setLastActiveIndex appInstance
    @frontApp = appInstance

  getFrontAppManifest: ->
    {name}  = @getFrontApp().getOptions()

        safeToUnload = no
        break
      return safeToUnload ? yes


  isAppInternal: (name = '') -> globals.config.apps[name]?

