From 02d9f2f3be9688346b0a943c538eeea2e152edf9 Mon Sep 17 00:00:00 2001 From: josdejong Date: Tue, 11 Feb 2014 12:07:02 +0100 Subject: [PATCH] Stop event propagation after deleting an item --- src/timeline/component/item/Item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timeline/component/item/Item.js b/src/timeline/component/item/Item.js index eeacf4c6..49922ba9 100644 --- a/src/timeline/component/item/Item.js +++ b/src/timeline/component/item/Item.js @@ -98,8 +98,9 @@ Item.prototype._repaintDeleteButton = function (anchor) { Hammer(deleteButton, { preventDefault: true - }).on('tap', function () { + }).on('tap', function (event) { parent.removeItem(id); + event.stopPropagation(); }); anchor.appendChild(deleteButton);