Skip to content

Commit

Permalink
updated contribution md
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Nov 5, 2018
1 parent e99ab08 commit 3d99a5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- [First Class Props](#first-class-props)
- [Lifecycle Phases](#lifecycle-phases)
- [`constructor()`](#constructor)
- [`init()`](#init)
- [`connectedCallback()`](#connectedcallback)
- [`contextCallback(contextNode)`](#contextcallbackcontextnode)
- [`attributeChangedCallback(name, oldValue, newValue)`](#attributechangedcallbackname-oldvalue-newvalue)
Expand Down Expand Up @@ -209,8 +210,11 @@ A [custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/U

#### `constructor()`

The constructor can be used to setup stuff like, establishing contexts, event handlers, observers, defining a shadow root, but never for DOM manipulation.
It always starts by calling `super()` so that the correct prototype chain is established.
We never use the ~~constructor~~ directly, ìnstead we call [`init()`](#init) for you with the proper context!

#### `init()`
The `init()` method can be used to setup stuff like, establishing contexts, event handlers, observers, defining a shadow root, but never for DOM manipulation.
It always starts by calling `super.init(?options)` so that the correct prototype chain is established.

#### `connectedCallback()`

Expand Down

0 comments on commit 3d99a5d

Please sign in to comment.