mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
refactor(components): move function to get classes from host to utils
Moved getElementClassObject function to utils/theme and updated the components with child buttons to use this function to get the host classes. Adds the ability to pass classes down from host to child for content and segment button closes ionic-team/stencil#84
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
|
||||
export function isDef(v: any): boolean { return v !== undefined && v !== null; }
|
||||
|
||||
export function isUndef(v: any): boolean { return v === undefined || v === null; }
|
||||
@ -152,4 +151,4 @@ export function swipeShouldReset(isResetDirection: boolean, isMovingFast: boolea
|
||||
// The resulting expression was generated by resolving the K-map (Karnaugh map):
|
||||
let shouldClose = (!isMovingFast && isOnResetZone) || (isResetDirection && isMovingFast);
|
||||
return shouldClose;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user