Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js error on swipe to delete implementation #10

Open
ShashankaNataraj opened this issue Feb 20, 2017 · 0 comments
Open

js error on swipe to delete implementation #10

ShashankaNataraj opened this issue Feb 20, 2017 · 0 comments

Comments

@ShashankaNataraj
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant