app.track => app.instrument to be less confusing

This commit is contained in:
danielgrippi 2012-05-30 17:56:17 -07:00
parent 91db7859d8
commit 1c81e4f587
3 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ var app = {
},
/* mixpanel wrapper function */
track : function() {
instrument : function() {
if(!window.mixpanel) { return }
window.mixpanel[arguments[0]](_.toArray(arguments).slice(1))
}

View file

@ -136,7 +136,7 @@ app.views.framerControls = app.views.Base.extend({
trackPost : function() {
var model = this.model
app.track("Posted", {
app.instrument("track", "Posted", {
text : model.hasText(),
photos : model.hasPhotos(),
template : model.get("frame_name")

View file

@ -56,7 +56,7 @@ app.views.Post.CanvasFrame = app.views.Post.SmallFrame.extend({
_.delay(function(){app.page.stream.trigger("reLayout")}, 200)
// track the action
app.track("track", "Resize Frame")
app.instrument("track", "Resize Frame")
},
killPost : function(){