diaspora/public/javascripts/app/views/stream_object_view.js
2012-01-07 14:23:24 -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();
}
});