-
Notifications
You must be signed in to change notification settings - Fork 2k
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
this.$ gets polluted with shadow dom of other components #1069
Comments
I think the problem might be that you have declared your sound_library https://www.polymer-project.org/docs/polymer/polymer.html On 4 January 2015 at 11:05, Braulio Valdivielso Martínez <
|
I should have mentioned that the same is true of reserved_attribute_names https://github.com/BraulioVM/sound-library/blob/master/element.html On 4 January 2015 at 11:17, Waterman, Max [email protected] wrote:
|
Ok, just now I saw that the problem had nothing to do with this.$ but with sound_library, and then you have answered! Thank you very much, you really helped me! |
Hi! I am writing a polymer component and think I might have found something not working quite well with polymer (it might as well be that the error is mine, but have not been able to discover it).
The component is something like this:
I also have an example document using that code, in which I am using that component twice, like this:
When I debug the
ready
method there is no problem the first time it's called (withthis = #sounds
), but when it's called the second time, I can find inthis.$
nodes from#sounds
shadow DOM, even those in the template-repeat (and clearly those shouldn't be found).The problem might be related to the way in which this.$ is set. However, I find it quite strange that no other components have had this bug, so that's why I think the error could be mine.
I am sorry if I have not made myself clear enough, it's the first time I post an issue.
Thank you.
Braulio Valdivielso
The text was updated successfully, but these errors were encountered: