Pārlūkot izejas kodu

Build with pull request #79

Jay Salvat 10 gadi atpakaļ
vecāks
revīzija
7da510449e
4 mainītis faili ar 15 papildinājumiem un 6 dzēšanām
  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;
         }
     };

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/vegas.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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;
         }
     };

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels