From d6a1cdcd204530c125cf20699270a719aed8d439 Mon Sep 17 00:00:00 2001 From: Bastian Gutschke Date: Mon, 27 Feb 2012 14:23:17 +0100 Subject: [PATCH] Changed settings/options handling. Changed the options handling, because there is no need to extend the settings for each slideshow individually. The settings will be identical for each slideshow anyways. --- responsiveslides.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/responsiveslides.js b/responsiveslides.js index 0cbbef2..b903aec 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -2,19 +2,16 @@ (function ($) { $.fn.responsiveSlides = function (options) { // Settings - var settings = { + var settings = $.extend({ 'speed' : 4000, 'fade' : 1000, 'auto' : true, 'maxwidth' : 'none', 'namespace' : 'rs' - }; + }, options); return this.each(function () { var $this = $(this); - if (options) { - $.extend(settings, options); - } var slideshow = function () { var $slide = $this.find('img'),