Remove all mix panel code and calls when no mix panel key is specified

This commit is contained in:
Joseph Schorr 2014-04-08 21:10:33 -04:00
parent 3a3758654c
commit c20b04d072
3 changed files with 65 additions and 38 deletions

View file

@ -135,7 +135,7 @@ angular.module("angular-tour", [])
};
var fireMixpanelEvent = function() {
if (!$scope.step || !mixpanel) { return; }
if (!$scope.step || !window['mixpanel']) { return; }
var eventName = $scope.step['mixpanelEvent'];
if (eventName) {