|
@ -144,8 +144,8 @@ Item.prototype._repaintDeleteButton = function (anchor) { |
|
|
|
|
|
|
|
|
// TODO: be able to destroy the delete button
|
|
|
// TODO: be able to destroy the delete button
|
|
|
new Hammer(deleteButton).on('tap', function (event) { |
|
|
new Hammer(deleteButton).on('tap', function (event) { |
|
|
me.parent.removeFromDataSet(me); |
|
|
|
|
|
event.stopPropagation(); |
|
|
event.stopPropagation(); |
|
|
|
|
|
me.parent.removeFromDataSet(me); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
anchor.appendChild(deleteButton); |
|
|
anchor.appendChild(deleteButton); |
|
|