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

这段代码疑问 #20

Open
huangxiaoye opened this issue Dec 15, 2016 · 1 comment
Open

这段代码疑问 #20

huangxiaoye opened this issue Dec 15, 2016 · 1 comment

Comments

@huangxiaoye
Copy link

huangxiaoye commented Dec 15, 2016

let removeDom = event => {
if (event.target.parentNode) {
event.target.parentNode.removeChild(event.target);
}
};
冒昧的问一句,在移除event.target之前,是不是应该把它上面注册的事件监听器(事件transitioned)先移除掉?

@u3u
Copy link

u3u commented Dec 16, 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