Browse Source

Stop event propagation after deleting an item

css_transitions
josdejong 10 years ago
parent
commit
02d9f2f3be
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/timeline/component/item/Item.js

+ 2
- 1
src/timeline/component/item/Item.js View File

@ -98,8 +98,9 @@ Item.prototype._repaintDeleteButton = function (anchor) {
Hammer(deleteButton, { Hammer(deleteButton, {
preventDefault: true preventDefault: true
}).on('tap', function () {
}).on('tap', function (event) {
parent.removeItem(id); parent.removeItem(id);
event.stopPropagation();
}); });
anchor.appendChild(deleteButton); anchor.appendChild(deleteButton);

Loading…
Cancel
Save