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

[0.8-preview] Bespoke element constructors #1151

Closed
peterwmwong opened this issue Jan 31, 2015 · 1 comment
Closed

[0.8-preview] Bespoke element constructors #1151

peterwmwong opened this issue Jan 31, 2015 · 1 comment
Labels

Comments

@peterwmwong
Copy link
Contributor

http://jsbin.com/puvaze/3/edit?html,output

Bespoke element constructors, mentioned in the PRIMER.md, don't seem to work because this doesn't seem to be correctly bound. As such this.is is incorrect and nothing good gets passed to document.createElement() :(

@kevinpschaaf
Copy link
Member

Fixed in 24a2914 (didn't take PR #1152 as the implementation has changed a bit). Note the API change, such that the custom constructor need not call document.createElement and return the element. This will be done automatically; the user constructor should only configure the instance (this).

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

4 participants