浏览代码

Build with pull request #79

Jay Salvat 10 年之前
父节点
当前提交
7da510449e
共有 4 个文件被更改,包括 15 次插入6 次删除
  1. 9 3
      dist/vegas.js
  2. 1 1
      dist/vegas.min.js
  3. 0 0
      dist/vegas.min.js.map
  4. 5 2
      src/vegas.js

+ 9 - 3
dist/vegas.js

@@ -1,6 +1,6 @@
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
- * v2.1.2 - built 2015-04-15
+ * v2.1.2 - built 2015-04-28
  * Licensed under the MIT License.
  * http://vegas.jaysalvat.com/
  * ----------------------------------------------------------------------------
@@ -623,9 +623,15 @@
             this.$elmt.find('> .vegas-slide').remove();
             this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt);
             this.$elmt.find('> .vegas-wrapper').remove();
-            this.$timer.remove();
-            this.$overlay.remove();
 
+            if (this.settings.timer) {
+                this.$timer.remove();
+            }
+
+            if (this.settings.overlay) {
+                this.$overlay.remove();
+            }
+            
             this.elmt._vegas = null;
         }
     };

文件差异内容过多而无法显示
+ 1 - 1
dist/vegas.min.js


文件差异内容过多而无法显示
+ 0 - 0
dist/vegas.min.js.map


+ 5 - 2
src/vegas.js

@@ -614,12 +614,15 @@
             this.$elmt.find('> .vegas-slide').remove();
             this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt);
             this.$elmt.find('> .vegas-wrapper').remove();
+
             if (this.settings.timer) {
-              this.$timer.remove();    
+                this.$timer.remove();
             }
+
             if (this.settings.overlay) {
-              this.$overlay.remove();    
+                this.$overlay.remove();
             }
+            
             this.elmt._vegas = null;
         }
     };

部分文件因为文件数量过多而无法显示