diff --git a/dist/swiped.js b/dist/swiped.js index 93246ac..827a957 100644 --- a/dist/swiped.js +++ b/dist/swiped.js @@ -345,7 +345,7 @@ } }); - if (isRemoveNode) { + if (isRemoveNode && this.elem.parentNone) { this.elem.parentNode.removeChild(this.elem); } };