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

events add and remove handler not match #2

Closed
fish520 opened this issue Apr 19, 2016 · 1 comment
Closed

events add and remove handler not match #2

fish520 opened this issue Apr 19, 2016 · 1 comment

Comments

@fish520
Copy link

fish520 commented Apr 19, 2016

see the code

ready () {
            this.now = this.parse(this.value) || new Date();
            document.addEventListener('click', (e) => {
                if (!this.$el.contains(e.target)) {
                    this.close();
                }
            }, false);
        },
        beforeDestroy () {
            document.removeEventListener('click', this.close, false);
        }

click events handle is not removed actually.

@8788
Copy link
Owner

8788 commented May 19, 2016

#4

@8788 8788 closed this as completed May 19, 2016
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

2 participants