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

Get full list of polymer-elements. #460

Closed
zonito opened this issue Mar 30, 2014 · 1 comment
Closed

Get full list of polymer-elements. #460

zonito opened this issue Mar 30, 2014 · 1 comment

Comments

@zonito
Copy link

zonito commented Mar 30, 2014

Sometime when we dynamically import polymer components - it is useful to get full list of imported components to avoid re-import statements in javascript.

How about exporting "prototypesByName" variable (https://github.com/Polymer/polymer-dev/blob/4b38cdf39f7b54fcd56e84b981c2819273bbdf08/src/declaration/polymer.js#L60)?

Please do let me know,

Thanks!

@sjmiles
Copy link
Contributor

sjmiles commented Mar 30, 2014

Import de-duplication allows you to not have to worry about this in general.

protototypeByName is only for Polymer elements, you could also have X-Tags, raw custom elements, or any other kind.

@sorvell sorvell closed this as completed Aug 12, 2014
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

3 participants