PROD-1285
This commit is contained in:
@@ -9,6 +9,7 @@ define(['js/views/baseview', 'underscore'], function(BaseView, _) {
|
||||
// Backbone model cid is only unique within the collection.
|
||||
this.uniqueId = _.uniqueId(templateName + '_');
|
||||
this.template = this.loadTemplate(templateName);
|
||||
// xss-lint: disable=javascript-jquery-html
|
||||
this.$el.html(this.template({model: this.model, uniqueId: this.uniqueId}));
|
||||
this.listenTo(this.model, 'change', this.render);
|
||||
this.render();
|
||||
|
||||
Reference in New Issue
Block a user