Created
June 17, 2014 15:23
-
-
Save artcommacode/857f11d129cc4148a976 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// is there a "neater" or "better" way of doing this? | |
function getNextSlide(right) { | |
return right ? | |
slideshow.$current.next().length ? | |
slideshow.$current.next() : | |
$(slideshow.slides).first() : | |
slideshow.$current.prev().length ? | |
slideshow.$current.prev() : | |
$(slideshow.slides).last(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment