mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
style(): fix shadowed vars (#24609)
This commit is contained in:
@ -225,13 +225,13 @@ export class Toggle implements ComponentInterface {
|
||||
}
|
||||
}
|
||||
|
||||
const shouldToggle = (isRTL: boolean, checked: boolean, deltaX: number, margin: number): boolean => {
|
||||
const shouldToggle = (rtl: boolean, checked: boolean, deltaX: number, margin: number): boolean => {
|
||||
if (checked) {
|
||||
return (!isRTL && (margin > deltaX)) ||
|
||||
(isRTL && (- margin < deltaX));
|
||||
return (!rtl && (margin > deltaX)) ||
|
||||
(rtl && (- margin < deltaX));
|
||||
} else {
|
||||
return (!isRTL && (- margin < deltaX)) ||
|
||||
(isRTL && (margin > deltaX));
|
||||
return (!rtl && (- margin < deltaX)) ||
|
||||
(rtl && (margin > deltaX));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user