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'),