UNPKG

get-translation

Version:
14 lines 387 B
(function(views) { views.ResultView = Backbone.View.extend({ tagName : 'tr', template : _.template($('#resultItemTemplate').html()), initialize : function() { this.model.bind('change', this.render, this); this.model.bind('destroy', this.remove, this); }, render : function() { this.$el.html(this.template(this.model.toJSON())); return this; } }); })(app.views);