bradbirdsall/Swipe — pull request #53 by fightingtheboss (2012-03-31 17:08:32+00:00)
Title: Hide all elements except current, next and prev

Set visibility:hidden and display:none on all elements that aren't visible or visible next. Could have implications for sliding to a non-consecutive slide, but improves performance (particularly on iOS devices).

For non-consecutive slides, could set all elements in the range to visible before the slide then hide them again after. I can modify the _setVisibility function to accept an optional end index to handle that case, if you think this whole thing is a good idea.

(Also, sorry for the noop line changes, my editor is set to trim whitespace at line endings and I was too impatient to figure out how to do a line by line commit)