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