Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2730 from josemarluedke/fix-deprecation-of-render…
Browse files Browse the repository at this point in the history
…ToElement

Fix deprecation example of renderToElement
  • Loading branch information
rwjblue committed Nov 29, 2016
2 parents bfde9c4 + 8b67587 commit 3fc6329
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/deprecations/v2.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,13 +743,14 @@ Please refactor to use `appendTo`:
For example, if you had:
```js
component.renderToElement('.my-component-wrapper');
component.renderToElement('div');
```
Would be refactored to:
```js
component.appendTo('.my-component-wrapper');
let element = document.createElement('div');
component.appendTo(element);
```
Note that both APIs are private, so no public API is been deprecated here.
Expand Down

0 comments on commit 3fc6329

Please sign in to comment.