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:03 UTC

[44/50] brooklyn-ui git commit: catch error if google maps not avail -- means we can show recent activity even if google not available

catch error if google maps not avail -- means we can show recent activity even if google not available


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/573fa75f
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/573fa75f
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/573fa75f

Branch: refs/heads/0.4.0
Commit: 573fa75fd383b7526a022beef3951882e12b8c3a
Parents: 9a34e9e
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Mon Sep 10 12:12:33 2012 -0700
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Mon Sep 10 23:25:10 2012 -0700

----------------------------------------------------------------------
 .../web-app/js/console/dashboard/widgets/circles.js     | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/573fa75f/usage/web-console/web-app/js/console/dashboard/widgets/circles.js
----------------------------------------------------------------------
diff --git a/usage/web-console/web-app/js/console/dashboard/widgets/circles.js b/usage/web-console/web-app/js/console/dashboard/widgets/circles.js
index 93d402b..d513bcb 100644
--- a/usage/web-console/web-app/js/console/dashboard/widgets/circles.js
+++ b/usage/web-console/web-app/js/console/dashboard/widgets/circles.js
@@ -106,9 +106,15 @@ Brooklyn.circles = (function() {
     }
 
     function init() {
-        drawMap();
-        drawCircles();
-        $(Brooklyn.eventBus).bind("update", update);
+    	try {
+    		drawMap();
+    		drawCircles();
+    		$(Brooklyn.eventBus).bind("update", update);
+    	} catch (err) {
+    		if ( typeof console != 'undefined' && typeof console.log != 'undefined' ) {
+    			console.log( err );
+            }
+    	}
     }
 
     return {init: init};