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

componentname is not being set in DoughBaseComponent #218

Open
ourmaninamsterdam opened this issue Feb 17, 2015 · 0 comments
Open

componentname is not being set in DoughBaseComponent #218

ourmaninamsterdam opened this issue Feb 17, 2015 · 0 comments

Comments

@ourmaninamsterdam
Copy link
Contributor

When initialising components using componentLoader, the componentName is derived from the data-dough-component attribute specified on the component's DOM element. This is then passed across in the config into DoughBaseComponent. Once the component has been initialised, its element is stamped with data-dough-[componentname]-initialised="yes". A record of the component is also kept in a component manifest.

However, as componentLoader isn't used, when directly instantiating a component new TabSelector(), the component name is never passed across and thus the element isn't stamped with data-dough-[componentname]-initialised="yes".

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

1 participant