ensure to cancel animation on p-re-invocation

BUG: 356381
FIXED-IN: 5.5.1
REVIEW: 126277
This commit is contained in:
Thomas Lübking 2015-12-08 13:08:57 +01:00
parent fab806df92
commit 86f2a71b9a

View file

@ -135,6 +135,10 @@ var eyeOnScreenEffect = {
}]
});
}
if (w.eyeOnScreenOpacityKeeper !== undefined) {
cancel(w.eyeOnScreenOpacityKeeper);
delete w.eyeOnScreenOpacityKeeper;
}
animate({
window: w,
duration: eyeOnScreenEffect.duration,