From 49a822916275311e7d86da1164b18c4d0d9edf6f Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Fri, 2 Nov 2012 17:44:16 -0400 Subject: [PATCH] FIXED - Routing to undefined server - ie after remove --- resources/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 3ebc947..de88be4 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -206,12 +206,12 @@ console.log(Bootstrap); , _routerActionClient: function (hostname) { var that = this , server = this.servers.get(hostname) - , client = server.client + , client = server && server.client || undefined ; - that.Views.SideBar.select(server); + if (server && client) { + that.Views.SideBar.select(server); - if (client) { var __fnAppEventClientLoaded = function () { if (!that.Views.Main.getView(server.get("hostname"))) { that.Views.Main.setView(server.client.attributes.hostname, new ClientView({