Built files from Bizgaze WebServer
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

sammy.mixpanel-0.7.6.min.js 825B

12345
  1. // -- Sammy.js -- /plugins/sammy.mixpanel.js
  2. // http://sammyjs.org
  3. // Version: 0.7.6
  4. // Built: 2014-08-26 10:45:32 +0300
  5. (function(factory){if(typeof define==="function"&&define.amd){define(["jquery","sammy"],factory)}else{(window.Sammy=window.Sammy||{}).Flash=factory(window.jQuery,window.Sammy)}})(function($,Sammy){Sammy.Mixpanel=function(app){var shouldTrack=true;function disableTracking(){shouldTrack=false}function enableTracking(){shouldTrack=true}this.helpers({doNotTrackMixpanel:function(){disableTracking()},trackMixpanel:function(path){if(typeof window.mixpanel!="undefined"&&shouldTrack){this.log("tracking mixpanel",path);window.mixpanel.track(path)}}});this.bind("event-context-after",function(){var path=this.app.last_location[1];if(path){this.trackMixpanel(path);enableTracking()}})};return Sammy.Mixpanel});