Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

feat(custom-element): patch customElement v1 APIs - #1133

Merged
mhevery merged 1 commit into
angular:masterfrom
JiaLiPassion:custom-element
Sep 11, 2018
Merged

feat(custom-element): patch customElement v1 APIs#1133
mhevery merged 1 commit into
angular:masterfrom
JiaLiPassion:custom-element

Conversation

@JiaLiPassion

@JiaLiPassionJiaLiPassion commented Sep 9, 2018

Copy link
Copy Markdown
Collaborator

Patch the CustomElement V1 APIs.

connectedCallback
disconnectedCallback
adoptedCallback
attributeChangedCallback

Make them run in the zone when they were defined by customElements.define.

So the issue like angular/angular#24185 may be resolved by this one.

@robwormald, @mhevery, please review, thank you!

@remackgeek

Copy link
Copy Markdown

This is cool! Does it play nice with the document-register-element polyfill (specifically 1.8.1)?

@JiaLiPassion
JiaLiPassionforce-pushed the custom-element branch 2 times, most recently from 87f7894 to 321137dCompareSeptember 10, 2018 00:36
@JiaLiPassion

Copy link
Copy Markdown
CollaboratorAuthor

@remackgeek, I believe before this PR, zone.js already support legacy document.registerElement. So document-register-element polyfill will also be supported.

@krishna217

krishna217 commented Oct 16, 2018

Copy link
Copy Markdown

Which version will this fix be available ?

@antch

Copy link
Copy Markdown

Just FYI for anyone following the thread, this fix is available as of 0.8.27.

@khelsisura

Copy link
Copy Markdown

@antch where?

@antch

Copy link
Copy Markdown

@harveyelsisura I'm not really sure what you're asking, I'm just saying that this pull request made it into the 0.8.27 release.

https://github.com/angular/zone.js/blob/v0.8.27/dist/zone.js#L3151

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@JiaLiPassion@remackgeek@krishna217@antch@khelsisura@mhevery@googlebot