Created
January 8, 2014 23:49
-
-
Save ben-ng/8326943 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
, getComments: function () { | |
if(!this.comments) | |
throw new Error('You need to loadComments before you can get comments'); | |
return this.comments.map(function (comment) { | |
var obj = comment.toJSON(); | |
obj.relativeDate = relative(obj.updated); | |
return obj; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment