Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 8b2bd94

Browse files
committed
README: update lifecycle callback names
1 parent f6982a5 commit 8b2bd94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Example:
111111
The Custom Elements specification is still under discussion. The polyfill implements certain features in advance of the specification. In particular, the lifecycle callback methods that get called if implemented on the element prototype:
112112

113113
* `createdCallback()` is called when a custom element is created.
114-
* `enteredDocumentCallback()` is called when a custom element is inserted into a DOM subtree.
115-
* `leftDocumentCallback()` is called when a custom element is removed from a DOM subtree.
114+
* `enteredViewCallback()` is called when a custom element is inserted into a DOM subtree.
115+
* `leftViewCallback()` is called when a custom element is removed from a DOM subtree.
116116
* `attributeChangedCallback(attributeName)` is called when a custom element's attribute value has changed
117117

118118
`createdCallback` is invoked _synchronously_ with element instantiation, the other callbacks are called _asyncronously_. The asynchronous callbacks generally use the MutationObserver timing model, which means they are called before layouts, paints, or other triggered events, so the developer need not worry about flashing content or other bad things happening before the callback has a chance to react to changes.

0 commit comments

Comments
 (0)