From 86f2a71b9a7aadcaf241b4e599e8364756798057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 8 Dec 2015 13:08:57 +0100 Subject: [PATCH] ensure to cancel animation on p-re-invocation BUG: 356381 FIXED-IN: 5.5.1 REVIEW: 126277 --- effects/eyeonscreen/package/contents/code/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/effects/eyeonscreen/package/contents/code/main.js b/effects/eyeonscreen/package/contents/code/main.js index aec450eec7..f6c51b8390 100644 --- a/effects/eyeonscreen/package/contents/code/main.js +++ b/effects/eyeonscreen/package/contents/code/main.js @@ -135,6 +135,10 @@ var eyeOnScreenEffect = { }] }); } + if (w.eyeOnScreenOpacityKeeper !== undefined) { + cancel(w.eyeOnScreenOpacityKeeper); + delete w.eyeOnScreenOpacityKeeper; + } animate({ window: w, duration: eyeOnScreenEffect.duration,