       item.on "click", (event)->
         landingPageSideBar.emit "navItemIsClicked", item, event
 
+  instantiateListItems:(items)->
 
-
-
-  instantiateListItems:(items)->
+    items = items.slice()
 
     # Build groups menu
     if @lc.userEnteredFromGroup()


class LandingPageSideBar extends KDView

  defaultItems =  items : [
      { title : "Register", action : "register", loggedOut : yes }
      { type  : "separator" }
      { title : "Logout",   action : "logout",   loggedIn  : yes }
      { title : "Login",    action : "login",    loggedOut : yes }
    ]

  constructor:(isLoggedIn = no)->


      scrollView   : no
      wrapper      : no
      delegate     : @
    ,
      items : [
        { title : "Register", action : "register", loggedOut : yes }
        { type  : "separator" }
        { title : "Logout",   action : "logout",   loggedIn  : yes }
        { title : "Login",    action : "login",    loggedOut : yes }
      ]

    @on 'ListItemsInstantiated' , =>
      $("#profile-static-nav").remove()

    @addSubView @nav = @navController.getView()

    @mainController.on "accountChanged.to.*", => @navController.reset()

class LandingPageNavigationController extends NavigationController

