Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed Oct 4, 2016
1 parent dd21d35 commit 082b8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class MyElementSubclass extends MyElement {
}
// Register custom element definition using standard platform API
customElements.define(MyElementSubclass, MyElementSubclass);
customElements.define(MyElementSubclass.is, MyElementSubclass);
```

Below are the general steps for defining a custom element using this new syntax:
Expand Down Expand Up @@ -177,7 +177,7 @@ Polymer 2.0 elements will target the V1 Custom Elements API, which primarily cha
* Changes to callback names:
* When using `Polymer({...})` from the compatibility layer, all callbacks should use legacy Polymer API names (`created`, `attached`, `detached`, `attributeChanged`)
* When extending from `Polymer.Element`, users should override the V1 standard callback names and call `super()`:
* `connected` changes to `constructor`
* `created` changes to `constructor`
* `attached` changes to `connectedCallback`
* `detached` changes to `disconnectedCallback`
* `attributeChanged` changes to `attributeChangedCallback`
Expand Down

0 comments on commit 082b8a9

Please sign in to comment.