From 5b0e6037e05467f0e06cc004a4416aa3f8e46bab Mon Sep 17 00:00:00 2001 From: Viljami S Date: Fri, 9 Dec 2011 12:53:20 +0200 Subject: [PATCH] Remove couple unnecessary things and uses $slide instead of 'img' now everywhere. Also combines $pagination with the previous 'var' statement. --- responsiveslides.js | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) 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 = $('