diff --git a/responsiveslides.js b/responsiveslides.js
index 1605848..6a60b79 100644
--- a/responsiveslides.js
+++ b/responsiveslides.js
@@ -18,22 +18,23 @@
$.extend(settings, options);
}
- // Don't run if there's only one image
- if ($this.find('img').length <= 1) {
- return;
- }
-
var slideshow = function () {
- var $slides = $this.find('img');
+ var $slide = $this.find('img'),
+ $pagination = $('
');
+
+ // Don't run if there's only one slide
+ if ($this.find($slide).length <= 1) {
+ return;
+ }
- $slides.each(function (i) {
+ $slide.each(function (i) {
var $el = $(this);
$el.attr({
id : settings.namespace + '_slide' + i
});
});
- $slides.css({
+ $slide.css({
top: 0,
left: 0,
width: '100%',
@@ -50,7 +51,7 @@
position: 'relative'
});
- // Dirty attempt to fix the height
+ // Dirty fix for the height
heightFix = [
'