perf(all): minify better by using arrow functions (#18730)

This commit is contained in:
Manu MA
2019-07-10 16:33:33 +02:00
committed by Brandy Carney
parent 8beeff2c52
commit 03c1d19e07
99 changed files with 653 additions and 679 deletions

View File

@ -9,11 +9,11 @@ declare const Context: any;
let mode: Mode;
export function getIonMode(ref?: any): Mode {
export const getIonMode = (ref?: any): Mode => {
return (ref && getMode(ref)) || mode;
}
};
export default function() {
export default () => {
const doc = document;
const win = window;
Context.config = config;
@ -52,5 +52,4 @@ export default function() {
setMode(
(elm: any) => (elm as any).mode = (elm as any).mode || elm.getAttribute('mode') || mode
);
}
};