get-translation
Version:
Effective translation workflow
14 lines • 387 B
JavaScript
(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);