From cf3797cc6a19719ee1bbf875b123c77cebafc698 Mon Sep 17 00:00:00 2001 From: Herpiko Dwi Aguno Date: Tue, 13 Sep 2016 00:34:16 +0700 Subject: [PATCH] Fix the underscore's template usage. --- src/view.flot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view.flot.js b/src/view.flot.js index d145c3b5..0197b874 100644 --- a/src/view.flot.js +++ b/src/view.flot.js @@ -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,