diff --git a/adaptiveslides.js b/adaptiveslides.js index 88e0ad3..fd4dcc3 100644 --- a/adaptiveslides.js +++ b/adaptiveslides.js @@ -24,14 +24,16 @@ } var slideshow = function () { - $this.find('img').each(function (i) { + var $slides = $this.find('img'); + + $slides.each(function (i) { var $el = $(this); $el.attr({ id : settings.namespace + '_slide' + i }); }); - $this.find('img').css({ + $slides.css({ top: 0, left: 0, width: '100%', @@ -71,25 +73,23 @@ // Auto: false } else { - var $pagination = $('