|
|
@ -190,7 +190,7 @@ Item.prototype._updateContents = function (element) { |
|
|
|
var content; |
|
|
|
if (this.options.template) { |
|
|
|
var itemData = this.parent.itemSet.itemsData.get(this.id); // get a clone of the data from the dataset
|
|
|
|
content = this.options.template(itemData); |
|
|
|
content = this.options.template(itemData, element); |
|
|
|
} |
|
|
|
else { |
|
|
|
content = this.data.content; |
|
|
|