Repository: incubator-brooklyn Updated Branches: refs/heads/master 54bbe9bac -> 63c03b15e
fix some js errors on startup due to fields not initialized properly Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/44b6b4a0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/44b6b4a0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/44b6b4a0 Branch: refs/heads/master Commit: 44b6b4a011bea0d0e8d2b9d2ea5ddda6018f96f4 Parents: 584edcb Author: Alex Heneveld <[email protected]> Authored: Fri Mar 27 18:42:36 2015 -0500 Committer: Alex Heneveld <[email protected]> Committed: Sat Mar 28 21:27:28 2015 -0500 ---------------------------------------------------------------------- usage/jsgui/src/main/webapp/assets/js/router.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/44b6b4a0/usage/jsgui/src/main/webapp/assets/js/router.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/js/router.js b/usage/jsgui/src/main/webapp/assets/js/router.js index 3e38841..186dd72 100644 --- a/usage/jsgui/src/main/webapp/assets/js/router.js +++ b/usage/jsgui/src/main/webapp/assets/js/router.js @@ -88,14 +88,15 @@ define([ homePage:function (trail) { var that = this; + var veryFirstViewLoad, homeView; // render the page after we fetch the collection -- no rendering on error function render() { - var homeView = new HomeView({ + homeView = new HomeView({ collection:that.applications, locations:that.locations, appRouter:that }); - var veryFirstViewLoad = !that.currentView; + veryFirstViewLoad = !that.currentView; that.showView("#application-content", homeView); } this.applications.fetch({success:function () {
