-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the slider only contains one slide, it will generate an error #1
Comments
If you only have one slide then you shouldn't be using a slider in the first place. Just place your image and you are done! |
Yes! Indeed! Mark On 25 Jan 2013, at 22:07, syncnet [email protected] wrote:
|
Well, I can't control how many slides my customers choose to use, so in the case where they only use one slide, the slider generates an error. I think it's lame, to not control what happens if you remove all slides except one, so that's it. |
For your information. You only need to check that the flexslider not are undefined, before you initialize it. A simple solution could be:
if (this._flexslider != undefined) {
|
Thanks, although I think you shouldn't need to use this anymore, since the update to FlexSlider which allows manual controls to be used. Cheers, Mark On 28 Jan 2013, at 12:26, Richard Persson [email protected] wrote:
|
There are still not any support for custom controls in the new FlexSlider, so your code is still, very useful for those who like to move the controls out from the slider element. Cheers, |
Oh - interesting, I was mistaken. Glad it was worth the effort then! On 28 Jan 2013, at 12:35, Richard Persson [email protected] wrote:
|
Currently you can change the controlNav but not the directionNav. @abstractic agreed. |
Yup, another +1 for the code. No idea why you cannot customise directionNav but you can controlNav - very dis-jointed. |
If the slider only contains one slide, it will generate an error, please see line 23 and the row:
this._originalFlexsliderWrapupFunction = this._flexslider.wrapup;
The text was updated successfully, but these errors were encountered: