       tagName : "span"
       partial : "fetching apps..."
     
-    kac = @getSingleton("kodingAppsController")
-
-    kac.fetchApps (apps)=>
+    kodingAppsController = @getSingleton("kodingAppsController")
+
+    kodingAppsController.fetchApps (apps)=>
 
       temp.destroy()
       for app, manifest of apps

                  type         : "application"
                , (appView = new KDView)
                
                appInstance = eval appScript
                appInstance()
                # appInstance = Function(appScript)
                # do (appView)=> appInstance.call @, appView


# appView.addSubView a = new KDView

# appView.$().css "background-color", "pink"
# a.$().css backgroundColor : "red", color : "white"
# return a

# do (appView)->
#   appView.addSubview new AceView {}, FSHelper.createFileFromPath "localfile:/Untitled.txt"
  


