Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion iron-swipeable-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
value: false
},

/**
* If true, destroy the swiped element.
*/
destroy: {
type: Boolean,
value: true
},
/**
* The ratio of the width of the element that the translation animation
* should happen over. For example, if the `widthRatio` is 3, the
Expand Down Expand Up @@ -255,7 +262,8 @@
var target = event.currentTarget;

if (this._swipeComplete && event.propertyName === 'opacity') {
Polymer.dom(this).removeChild(target);
if ( this.destroy )
Polymer.dom(this).removeChild(target);
this.fire('iron-swipe',
{ direction: this._direction > 0 ? 'right' : 'left',
target:target
Expand Down