Skip to content

Commit

Permalink
Adds support for allowOneSlide option that will still initialize a fl…
Browse files Browse the repository at this point in the history
…exslider even if only one slide exists
  • Loading branch information
patbenatar committed Apr 25, 2013
1 parent a4647ed commit 20c8bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@
selector = (options.selector) ? options.selector : ".slides > li",
$slides = $this.find(selector);

if ($slides.length === 1) {
if ($slides.length === 1 && options.allowOneSlide !== true) {
$slides.fadeIn(400);
if (options.start) options.start($this);
} else if ($this.data('flexslider') == undefined) {
Expand Down

0 comments on commit 20c8bea

Please sign in to comment.