refactor(split-pane): remove [main] deprecation warning (#19599)

This commit is contained in:
Liam DeBeasi
2019-10-09 10:53:47 -04:00
committed by Brandy Carney
parent 5d6e077067
commit e623fbff80

View File

@ -67,24 +67,6 @@ export class SplitPane implements ComponentInterface {
} }
} }
componentWillLoad() {
if (this.contentId === undefined) {
console.warn(`[DEPRECATED][ion-split-pane] Using the [main] attribute is deprecated, please use the "contentId" property instead:
BEFORE:
<ion-split-pane>
...
<div main>...</div>
</ion-split-pane>
AFTER:
<ion-split-pane contentId="main-content">
...
<div id="main-content">...</div>
</ion-split-pane>
`);
}
}
@Watch('disabled') @Watch('disabled')
@Watch('when') @Watch('when')
protected updateState() { protected updateState() {