diff options
Diffstat (limited to 'src/MTools/Anim/MOpacity.pm')
-rw-r--r-- | src/MTools/Anim/MOpacity.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/MTools/Anim/MOpacity.pm b/src/MTools/Anim/MOpacity.pm index cbb5571..19c2108 100644 --- a/src/MTools/Anim/MOpacity.pm +++ b/src/MTools/Anim/MOpacity.pm @@ -98,9 +98,11 @@ sub start { -resources => [ $animationpath, -command => sub { $self -> __event (@_)}, - -endcommand => sub {$self -> notify ('ANIMATION_END');$self -> {__animation} = undef;}, + -endcommand => sub {$self -> {__animation} = undef; + $self -> notify ('ANIMATION_END');}, ], - -stopcommand => sub {$self -> notify ('ANIMATION_ABORD', $self -> {__opacity});$self -> {__animation} = undef;}, + -stopcommand => sub {$self -> {__animation} = undef; + $self -> notify ('ANIMATION_ABORD', $self -> {__opacity});}, -loop => $self -> mget ('loop'), ); $animation -> start (); |