From 570cc591223969c4d248a4324f490a9e10c11546 Mon Sep 17 00:00:00 2001 From: Erik Royall Date: Fri, 13 Sep 2013 19:43:43 +0530 Subject: [PATCH] Readability, more comments, typo --- src/fx.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fx.js b/src/fx.js index 1b8e9cc..8518c8e 100644 --- a/src/fx.js +++ b/src/fx.js @@ -114,7 +114,7 @@ }, /** - * Appears a disappeared element, disappears and appeared element + * Appears a disappeared element, disappears an appeared element * * @for Dom * @method toggleVisibility @@ -180,9 +180,11 @@ } function animate () { - var val = 0.3, end = 1; + var val = 0.3 + , end = 1; if (parseFloat(el.style.opacity) === (inOut === "in" ? 1 : 0)) { + // Stop the animation if the opacity is set to the final value clearInterval(win.Hilo.temp.anim); } else { if (inOut === "out") {