mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
chore(): remove console.logs
This commit is contained in:
@ -50,14 +50,12 @@ export class AlertController {
|
|||||||
|
|
||||||
@Listen('body:ionAlertWillPresent')
|
@Listen('body:ionAlertWillPresent')
|
||||||
protected willPresent(event: AlertEvent) {
|
protected willPresent(event: AlertEvent) {
|
||||||
console.log('willPresent: ', event);
|
|
||||||
this.alerts.push(event.target as HTMLIonAlertElement);
|
this.alerts.push(event.target as HTMLIonAlertElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listen('body:ionAlertWillDismiss')
|
@Listen('body:ionAlertWillDismiss')
|
||||||
@Listen('body:ionAlertDidUnload')
|
@Listen('body:ionAlertDidUnload')
|
||||||
protected willDismiss(event: AlertEvent) {
|
protected willDismiss(event: AlertEvent) {
|
||||||
console.log('willDismiss: ', event);
|
|
||||||
const index = this.alerts.indexOf(event.target as HTMLIonAlertElement);
|
const index = this.alerts.indexOf(event.target as HTMLIonAlertElement);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.alerts.splice(index, 1);
|
this.alerts.splice(index, 1);
|
||||||
|
@ -145,6 +145,5 @@ export function handleBackButtonClick(): Promise<any> {
|
|||||||
const promise = menuControllerElement ? isReady(menuControllerElement) : Promise.resolve();
|
const promise = menuControllerElement ? isReady(menuControllerElement) : Promise.resolve();
|
||||||
return promise.then(() => {
|
return promise.then(() => {
|
||||||
// TODO check if the menu is open, close it if so
|
// TODO check if the menu is open, close it if so
|
||||||
console.log('todo');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,6 @@ export class Navbar {
|
|||||||
backButtonClick(ev: UIEvent) {
|
backButtonClick(ev: UIEvent) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
|
||||||
console.log('back button click');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidLoad() {
|
componentDidLoad() {
|
||||||
|
@ -49,7 +49,6 @@ export class SegmentButton {
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
|
||||||
console.log('in segment button click');
|
|
||||||
this.emitClick();
|
this.emitClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user