瀏覽代碼

Fix the defaults slideshow settings

Jay Salvat 14 年之前
父節點
當前提交
d9cf59ac88
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      jquery.vegas.js

+ 5 - 4
jquery.vegas.js

@@ -162,13 +162,14 @@
         slideshow: function( settings, keepPause ) {
             var options = {
                 step: step,
-                delay: 5000,
+             //   delay: 5000,
                 preload: false,
                 backgrounds: backgrounds,
                 walk: function() {}
             };
-            options = $.extend( {}, $.vegas.defaults.slideshow, options, settings );
-
+            
+            $.extend( options, $.vegas.defaults.slideshow, settings );
+                        
             if ( options.backgrounds != backgrounds ) {
                 if ( !settings.step ) {
                     options.step = 0;
@@ -181,7 +182,7 @@
 
             backgrounds = options.backgrounds;
             step = options.step;
-
+            
             clearInterval( timer );
 
             if ( !backgrounds.length ) {