Skip to content

js error on swipe to delete implementation #10

@ShashankaNataraj

Description

@ShashankaNataraj

I copy pasted

Swiped.init({
        query: 'li',
        right: 400,
        onOpen: function () {
          this.destroy(true)
        }
      });

from the readme and get:

screen shot 2017-02-20 at 8 46 38 pm

everytime an element is swiped.

But, changing:

if (isRemoveNode) {
            this.elem.parentNode.removeChild(this.elem);
        }

to

if (isRemoveNode && this.elem.parentNode) {
            this.elem.parentNode.removeChild(this.elem);
        }

doesnt give out any errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions