Merge pull request #503 from herpiko/fixflot

Fix the underscore's template usage.
This commit is contained in:
Rufus Pollock 2016-09-23 16:52:08 +01:00 committed by GitHub
commit 74582c45c9

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,