Sha256: bf08fa815c3777ba1ee87823a8e9dc951c5dfc6780dbdebd814b2239ba71a7de

Contents?: true

Size: 816 Bytes

Versions: 10

Compression:

Stored size: 816 Bytes

Contents

//= require jquery
//= require jquery_ujs
//= require jquery.cookie
//= require lodash
//= require is
//= require bootstrap
//= require rails.validations
//= require rails.validations.simple_form
//
//= require_tree ./init
//
//= require_self

var is = require('is')
var _  = require('lodash')

track = function(event, attributes, fn){
  console.log("Track: " + event + " " + JSON.stringify(attributes))

  if (is.fn(attributes)) fn = attributes, attributes = null;
  if (is.undefined(attributes)) { attributes = {} }
  if ($.cookie('invisible') == "true") {
    if (!is.undefined(fn)) { fn() }
    return
  }

  if (typeof(analytics) == 'undefined') {
    return
  }

  attrs = _.extend({
    iteration: '<%= MVP::Iteration.version %>'
  }, attributes)

  analytics.track(event, attrs, fn)
}

window.track = track;

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
minimum_viable_product-0.0.13 app/assets/javascripts/minimum_viable_product/application.js.erb
minimum_viable_product-0.0.11 test/dummy/node_modules/minimum_viable_product/app/assets/javascripts/minimum_viable_product/application.js.erb
minimum_viable_product-0.0.11 app/assets/javascripts/minimum_viable_product/application.js.erb
minimum_viable_product-0.0.10 app/assets/javascripts/minimum_viable_product/application.js.erb
minimum_viable_product-0.0.9 app/assets/javascripts/minimum_viable_product/application.js.erb
minimum_viable_product-0.0.8 app/assets/javascripts/minimum_viable_product/application.js.erb
minimum-viable-product-0.0.7 app/assets/javascripts/mvp/application.js.erb
minimum-viable-product-0.0.6 app/assets/javascripts/mvp/application.js.erb
minimum-viable-product-0.0.5 app/assets/javascripts/mvp/application.js.erb
minimum-viable-product-0.0.4 app/assets/javascripts/mvp/application.js.erb