refactor(all): remove ionChange in non-inputs (#17101)

fixes #17071
This commit is contained in:
Manu MA
2019-01-14 21:43:24 +01:00
committed by GitHub
parent 3c801dbe11
commit d3b866b290
12 changed files with 29 additions and 70 deletions

View File

@ -60,20 +60,14 @@ export class SplitPane implements ComponentInterface {
*/
@Prop() when: string | boolean = QUERY['lg'];
/**
* Emitted when the split pane is visible.
*/
@Event({ bubbles: false }) ionChange!: EventEmitter<{visible: boolean}>;
/**
* Expression to be called when the split-pane visibility has changed
*/
@Event() ionSplitPaneVisible!: EventEmitter;
@Event() ionSplitPaneVisible!: EventEmitter<{visible: boolean}>;
@Watch('visible')
visibleChanged(visible: boolean) {
const detail = { visible, isPane: this.isPane.bind(this) };
this.ionChange.emit(detail);
this.ionSplitPaneVisible.emit(detail);
}