Browse Source

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.
pull/14/head
Bastian Gutschke 13 years ago
parent
commit
d6a1cdcd20
  1. 7
      responsiveslides.js

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

Loading…
Cancel
Save