wesbaker/jquery.innerFade — pull request #17 by olance (2012-08-14 13:04:24+00:00)
Title: Fixing buggy random behavior

Simplified plugin's init by removing the inversion in the usage of toHide/toShow variables when settings.type=='random'

Because of this inversion the code was confusing, and was actually showing items designated by *both* toHide and toShow in the random case.

Also, because toShow/toHide are determined depending on settings.type, I removed the line that was hiding all but the first element of $fade_object.
All elements are hidden instead in the z-index loop, which is more efficient (one loop on all elements instead of two) and sufficient as the toShow element will be shown right after the loop anyway.

See the [commit in my repo](https://github.com/olance/jquery.innerFade/commit/1395f252529c453918b6a29e961a66ff97c798ce) for comments on the changes