Skip to content

Commit

Permalink
Readability, more comments, typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erikroyall committed Sep 13, 2013
1 parent 1762812 commit 570cc59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
},

/**
* Appears a disappeared element, disappears and appeared element
* Appears a disappeared element, disappears an appeared element
*
* @for Dom
* @method toggleVisibility
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 570cc59

Please sign in to comment.