You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an old issue. An element now gets document.registerElement'd simply by defining it as a <polymer-element>.
We also support a noscript version of your earlier example, where registering an element using <polymer-element noscript><polymer-element> gives you what you're after without having to define the tag name twice. Note: If you opt-in to noscript, you're telling the system it will never see a constructor.
Currently, for registration, the tag name must be provided in 2 places:
Maybe DRY it up and infer the tag name in the script portion of the registration:
I would also assume using external script should work aswell:
https://groups.google.com/d/msg/polymer-dev/rwX2y0RhNaQ/HyKh3N7WvLMJ
Thanks!
The text was updated successfully, but these errors were encountered: