couple of event handler bug fixes
diff --git a/web/ons-demo/js/map.js b/web/ons-demo/js/map.js
index 60c9561..382cb26 100644
--- a/web/ons-demo/js/map.js
+++ b/web/ons-demo/js/map.js
@@ -286,9 +286,9 @@
})
.attr('class', function (d) {
if (d.state === 'ACTIVE' && d.controller) {
- return d.className + ' active ' + controllerColorMap[d.controller];
+ return 'active ' + controllerColorMap[d.controller];
} else {
- return d.className + ' inactive ' + 'colorInactive';
+ return 'inactive ' + 'colorInactive';
}
});
}
diff --git a/web/ons-demo/js/topology.js b/web/ons-demo/js/topology.js
index b932a1f..9801302 100644
--- a/web/ons-demo/js/topology.js
+++ b/web/ons-demo/js/topology.js
@@ -9,6 +9,7 @@
updateTopology = function() {
/* currently rings.js and map.js can be included to define the topology display */
+
drawTopology();
// setup the mouseover behaviors