Small error fix when mixpanel's not configured

This commit is contained in:
Julien Chaumond 2012-09-27 21:55:46 +02:00
parent 4b9b0f8e0d
commit 1b6e18a1db

View file

@ -26,7 +26,7 @@ getCurrentUserEmail = function(){
trackEvent = function(event, properties){
var properties= (typeof properties === 'undefined') ? {} : properties;
if(typeof mixpanel != 'undefined'){
if(typeof mixpanel.track != 'undefined'){
mixpanel.track(event, properties);
}
}