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

destroy() doesn't work when multiple elements created #145

Open
mainiak opened this issue Jul 8, 2014 · 0 comments
Open

destroy() doesn't work when multiple elements created #145

mainiak opened this issue Jul 8, 2014 · 0 comments
Labels

Comments

@mainiak
Copy link

mainiak commented Jul 8, 2014

var reactive = require('reactive');
var body = document.querySelector('body');
var r1 = reactive('<span>just one</span>', {});
var r2 = reactive('<span>one</span><span>two</span>', {});
body.appendChild(r1.el);
body.appendChild(r2.el);
r1.destroy(); // works
r2.destroy(); // doesn't work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants