ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

automatically call parse() and attachedCallback() / detachedCallback() #392

Closed wkeese closed 9 years ago

wkeese commented 9 years ago

For interoperability with AngularJS etc., automatically upgrade plain elements to custom elements (i.e. what parse() does). Also, automatically call attachedCallback() / detachedCallback() as custom elements are added to / removed from the DOM.

For performance reasons, disable detection while custom elements are rendering. If a custom element synchronously creates other custom elements, it should create them programatically and call attachedCallback() manually. Note that this is already done in delite for widgets in templates.

See #257 for original discussion.