commit | 247ab15c869da6f0b44b6064ba77fd4c45c75051 | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Wed Mar 29 13:55:54 2017 +0100 |
committer | Simon Hunt <simon@onlab.us> | Thu Mar 30 05:27:51 2017 +0000 |
tree | 5b3150f99b81a9321f400328e14020113ab1769b | |
parent | 9f7a2d7e9ce7b925ecda7f1302b9f384dea597e0 [diff] [blame] |
Topo2: Updated selection model Change-Id: Ib5c953b1a79fe516c1407971b8134e1425958215
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js index d79cea9..a03c839 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Region.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Region.js
@@ -58,9 +58,12 @@ this.model = new RegionModel(); }, + isLoadComplete: function() { + return this.bgRendered && this.regionData && this.peers; + }, loaded: function (key, value) { this[key] = value; - if (this.bgRendered && this.regionData && this.peers) { + if (this.isLoadComplete()) { this.startRegion(); } },