Merge pull request #503 from herpiko/fixflot
Fix the underscore's template usage.
This commit is contained in:
@@ -123,7 +123,8 @@ my.Flot = Backbone.View.extend({
|
|||||||
y = item.datapoint[0].toFixed(2);
|
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,
|
group: this.state.attributes.group,
|
||||||
x: this._xaxisLabel(x),
|
x: this._xaxisLabel(x),
|
||||||
series: item.series.label,
|
series: item.series.label,
|
||||||
|
|||||||
Reference in New Issue
Block a user