You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:52:42 UTC
[43/71] [abbrv] brooklyn-ui git commit: fix some js errors on startup
due to fields not initialized properly
fix some js errors on startup due to fields not initialized properly
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/83c958a0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/83c958a0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/83c958a0
Branch: refs/heads/0.7.0-incubating
Commit: 83c958a0ade7b0fd789e6243cdc59f1ccd48bdd0
Parents: 5a4b984
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Fri Mar 27 18:42:36 2015 -0500
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
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/brooklyn-ui/blob/83c958a0/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 () {