Fix the underscore's template usage.
This commit is contained in:
parent
88cbe06e10
commit
cf3797cc6a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user