mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
perf(all): minify better by using arrow functions (#18730)
This commit is contained in:
@ -164,7 +164,7 @@ export class SplitPane implements ComponentInterface {
|
||||
}
|
||||
}
|
||||
|
||||
function setPaneClass(el: HTMLElement, isMain: boolean) {
|
||||
const setPaneClass = (el: HTMLElement, isMain: boolean) => {
|
||||
let toAdd;
|
||||
let toRemove;
|
||||
if (isMain) {
|
||||
@ -177,4 +177,4 @@ function setPaneClass(el: HTMLElement, isMain: boolean) {
|
||||
const classList = el.classList;
|
||||
classList.add(toAdd);
|
||||
classList.remove(toRemove);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user