Kaynağa Gözat

fix issue when disabling autoPlay config flag at runtime

Hakim El Hattab 1 yıl önce
ebeveyn
işleme
76ec60a137

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.esm.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.esm.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.js.map


+ 5 - 0
js/controllers/backgrounds.js

@@ -326,6 +326,11 @@ export default class Backgrounds {
 
 			this.Reveal.slideContent.stopEmbeddedContent( this.previousBackground, { unloadIframes: !this.Reveal.slideContent.shouldPreload( this.previousBackground ) } );
 
+			// Clear the previous background if it was removed from DOM
+			if( !this.previousBackground.closest( 'body' ) ) {
+				this.previousBackground = null;
+			}
+
 		}
 
 		// Start content in the current background

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor