diaspora/public/javascripts/app/views/stream_object_view.js
2012-01-07 14:23:25 -08:00

13 lines
316 B
JavaScript

app.views.StreamObject = app.views.Base.extend({
className : "loaded",
initialize: function(options) {
this.model.bind('remove', this.remove, this);
this.model.bind('change', this.render, this);
},
destroyModel: function(evt){
if(evt){ evt.preventDefault(); }
this.model.destroy();
}
});