Skip to content

Commit

Permalink
Don't initialize if 0 items
Browse files Browse the repository at this point in the history
  • Loading branch information
patbenatar committed May 16, 2013
1 parent a0babd0 commit 87ea64e
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 && options.allowOneSlide !== true) {
if (($slides.length === 1 && options.allowOneSlide !== true) || $slides.length === 0) {
$slides.fadeIn(400);
if (options.start) options.start($this);
} else if ($this.data('flexslider') == undefined) {
Expand Down

0 comments on commit 87ea64e

Please sign in to comment.