Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Single image #1

Open
TrueNeophyte opened this issue Apr 26, 2011 · 0 comments
Open

Single image #1

TrueNeophyte opened this issue Apr 26, 2011 · 0 comments

Comments

@TrueNeophyte
Copy link

When a single image is used in the slider. It will attempt to fade from and to itself and will then suddenly disapper after fade, I made a simple fix that will simply not play if there is only one image.

Line 68, change:
this.play();

into :
if ( this.element.select('a').length > 1 )
this.play();

This will prevent the play function from running if there is only one element.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant