@@ -584,7 +584,7 @@ export class CssAnimationProperty<T extends Style, U> {
584
584
let prev = this [ computedValue ] ;
585
585
if ( value === unsetValue ) {
586
586
this [ symbol ] = unsetValue ;
587
- if ( this [ computedSource ] == propertySource ) {
587
+ if ( this [ computedSource ] === propertySource ) {
588
588
// Fallback to lower value source.
589
589
if ( this [ styleValue ] !== unsetValue ) {
590
590
this [ computedSource ] = ValueSource . Local ;
@@ -609,9 +609,15 @@ export class CssAnimationProperty<T extends Style, U> {
609
609
}
610
610
let next = this [ computedValue ] ;
611
611
if ( prev !== next && ( ! equalityComparer || ! equalityComparer ( prev , next ) ) ) {
612
- valueChanged && valueChanged ( this , prev , next ) ;
613
- this . view . nativeView && ( this . view [ native ] = next ) ;
614
- this . hasListeners ( eventName ) && this . notify ( { eventName, object : this , propertyName, value } ) ;
612
+ if ( valueChanged ) {
613
+ valueChanged ( this , prev , next ) ;
614
+ }
615
+ if ( this . view . nativeView ) {
616
+ this . view [ native ] = next ;
617
+ }
618
+ if ( this . hasListeners ( eventName ) ) {
619
+ this . notify ( { eventName, object : this , propertyName, value } ) ;
620
+ }
615
621
}
616
622
}
617
623
}
@@ -637,7 +643,7 @@ export class CssAnimationProperty<T extends Style, U> {
637
643
Object . defineProperty ( cls . prototype , defaultName , defaultPropertyDescriptor ) ;
638
644
Object . defineProperty ( cls . prototype , cssName , cssPropertyDescriptor ) ;
639
645
Object . defineProperty ( cls . prototype , propertyName , stylePropertyDescriptor ) ;
640
- if ( options . cssName && options . cssName != options . name ) {
646
+ if ( options . cssName && options . cssName !== options . name ) {
641
647
Object . defineProperty ( cls . prototype , options . cssName , stylePropertyDescriptor ) ;
642
648
}
643
649
Object . defineProperty ( cls . prototype , keyframeName , keyframePropertyDescriptor ) ;
0 commit comments