Skip to content

Instantly share code, notes, and snippets.

@cymen
Created April 5, 2012 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cymen/2312962 to your computer and use it in GitHub Desktop.
Save cymen/2312962 to your computer and use it in GitHub Desktop.
presenterData: function () {
var attributes = _.clone(this.model.attributes);
var that = this;
attributes.display_name = function() {
// logic here to return name as combination of fields
}
return attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment