Skip to content

Commit 46c8af4

Browse files
committed
refactor(overlay): rename resolver function
1 parent 5a63aee commit 46c8af4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: projects/igniteui-angular/src/lib/core/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export function yieldingLoop(count: number, chunkSize: number, callback: (index:
472472

473473
export function mkenum<T extends { [index: string]: U }, U extends string>(x: T) { return x; }
474474

475-
export function oppositeAnimationResolver(animation: AnimationReferenceMetadata): AnimationReferenceMetadata {
475+
export function reverseAnimationResolver(animation: AnimationReferenceMetadata): AnimationReferenceMetadata {
476476
return oppositeAnimation.get(animation) ?? animation;
477477
}
478478

Diff for: projects/igniteui-angular/src/lib/services/overlay/position/auto-position-strategy.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { oppositeAnimationResolver } from '../../../core/utils';
1+
import { reverseAnimationResolver } from '../../../core/utils';
22
import { ConnectedFit, HorizontalAlignment, VerticalAlignment } from './../utilities';
33
import { BaseFitPositionStrategy } from './base-fit-position-strategy';
44

@@ -163,10 +163,10 @@ export class AutoPositionStrategy extends BaseFitPositionStrategy {
163163
*/
164164
private flipAnimation() {
165165
if (this.settings.openAnimation) {
166-
this.settings.openAnimation = oppositeAnimationResolver(this.settings.openAnimation);
166+
this.settings.openAnimation = reverseAnimationResolver(this.settings.openAnimation);
167167
}
168168
if (this.settings.closeAnimation) {
169-
this.settings.closeAnimation = oppositeAnimationResolver(this.settings.closeAnimation);
169+
this.settings.closeAnimation = reverseAnimationResolver(this.settings.closeAnimation);
170170
}
171171
}
172172
}

0 commit comments

Comments
 (0)