From 1b6e18a1db90d06c50a4e85ccfa83bf552327ba1 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Thu, 27 Sep 2012 21:55:46 +0200 Subject: [PATCH] Small error fix when mixpanel's not configured --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index 6947f0177..c3f7be548 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -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); } }