You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/10 23:24:03 UTC

[16/19] fix bug with analytics

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f6c3d4aa/portal/js/usergrid-dev.min.js
----------------------------------------------------------------------
diff --git a/portal/js/usergrid-dev.min.js b/portal/js/usergrid-dev.min.js
index 2880606..21bfa8c 100644
--- a/portal/js/usergrid-dev.min.js
+++ b/portal/js/usergrid-dev.min.js
@@ -1,4 +1,4 @@
-/*! apigee-usergrid@2.0.36 2014-03-10 */
+/*! apigee-usergrid@2.0.0 2014-03-10 */
 (function(exports, global) {
     global["true"] = exports;
     "use strict";
@@ -1199,7 +1199,7 @@
         ITEMS_URL: "global/temp.json"
     });
     "use strict";
-    AppServices.Controllers.controller("PageCtrl", [ "ug", "utility", "$scope", "$rootScope", "$location", "$routeParams", "$q", "$route", "$log", "$analytics", function(ug, utility, $scope, $rootScope, $location, $routeParams, $q, $route, $log) {
+    AppServices.Controllers.controller("PageCtrl", [ "ug", "utility", "$scope", "$rootScope", "$location", "$routeParams", "$q", "$route", "$log", function(ug, utility, $scope, $rootScope, $location, $routeParams, $q, $route, $log) {
         var initScopeVariables = function() {
             $scope.loadingText = "Loading...";
             $scope.use_sso = false;
@@ -1506,15 +1506,10 @@
         };
     } ]);
     "use strict";
-    AppServices.Services.factory("ug", function(configuration, $rootScope, utility, $q, $http, $resource, $log, $analytics, $location) {
+    AppServices.Services.factory("ug", function(configuration, $rootScope, utility, $q, $http, $resource, $log, $location) {
         var requestTimes = [], running = false, currentRequests = {};
         function reportError(data, config) {
-            try {
-                $analytics.eventTrack("error", {
-                    category: "App Services",
-                    label: data + ":" + config.url + ":" + (sessionStorage["apigee_uuid"] || "na")
-                });
-            } catch (e) {
+            try {} catch (e) {
                 console.log(e);
             }
         }