From d13748348dc652b2490be3cb4c6f83fe77d135a3 Mon Sep 17 00:00:00 2001 From: RealRegatta Date: Mon, 27 Feb 2017 16:37:57 +0100 Subject: [PATCH] feat(timeline): Add item data as argument to the template function (#2799) --- lib/timeline/component/item/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/item/Item.js b/lib/timeline/component/item/Item.js index 0671f68f..f12d44d2 100644 --- a/lib/timeline/component/item/Item.js +++ b/lib/timeline/component/item/Item.js @@ -342,7 +342,7 @@ Item.prototype._updateContents = function (element) { if (this.options.template) { templateFunction = this.options.template.bind(this); - content = templateFunction(itemData, element); + content = templateFunction(itemData, element, this.data); } else { content = this.data.content; }