get-translation
Version:
Effective translation workflow
19 lines (14 loc) • 421 B
JavaScript
( function ( views ){
views.ResultView = Backbone.View.extend({
tagName : 'li',
template: _.template($('#resultItemTemplate').html()),
initialize: function() {
this.model.bind('change', this.render, this);
this.model.bind('remove', this.remove, this);
},
render : function () {
this.$el.html(this.template(this.model.toJSON()));
return this;
}
});
})( app.views );