Fix the underscore's template usage.

This commit is contained in:
Herpiko Dwi Aguno 2016-09-13 00:34:16 +07:00
parent 88cbe06e10
commit cf3797cc6a

View File

@ -123,7 +123,8 @@ my.Flot = Backbone.View.extend({
y = item.datapoint[0].toFixed(2);
}
var content = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>', {
var template = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>');
var content = template({
group: this.state.attributes.group,
x: this._xaxisLabel(x),
series: item.series.label,