Created
May 13, 2015 00:30
-
-
Save SachaG/66f0ae17befefda2eee4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Users.getDisplayName = function (user) { | |
console.log(user) | |
console.log(this) | |
return (user.telescope && user.telescope.displayName) ? user.telescope.displayName : Users.getUserName(user); | |
}; | |
Users.helpers({ | |
getDisplayName: function () { | |
return Users.getDisplayName(this); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment