diaspora/public/javascripts/app/models/reshare.js
2012-02-24 13:30:16 -08:00

14 lines
329 B
JavaScript

app.models.Reshare = app.models.Post.extend({
rootPost : function(){
this._rootPost = this._rootPost || new app.models.Post(this.get("root"));
return this._rootPost
},
reshare : function(){
return this.rootPost().reshare()
},
reshareAuthor : function(){
return this.rootPost().reshareAuthor()
}
});