mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 11:17:04 +08:00
test: standardized jest unit testing (#10047)
This commit is contained in:
@ -142,7 +142,7 @@ export class Animation extends AnimationBase {
|
||||
if (Trace.isEnabled()) {
|
||||
Trace.write('MainAnimatorListener.onAnimationEnd(' + animator + ')', Trace.categories.Animation);
|
||||
}
|
||||
const thisRef = that.get();
|
||||
const thisRef = that?.get();
|
||||
if (thisRef) {
|
||||
thisRef._onAndroidAnimationEnd();
|
||||
}
|
||||
@ -151,7 +151,7 @@ export class Animation extends AnimationBase {
|
||||
if (Trace.isEnabled()) {
|
||||
Trace.write('MainAnimatorListener.onAnimationCancel(' + animator + ')', Trace.categories.Animation);
|
||||
}
|
||||
const thisRef = that.get();
|
||||
const thisRef = that?.get();
|
||||
if (thisRef) {
|
||||
thisRef._onAndroidAnimationCancel();
|
||||
}
|
||||
|
Reference in New Issue
Block a user