Ver código fonte

fix issue when disabling autoPlay config flag at runtime

Hakim El Hattab 1 ano atrás
pai
commit
76ec60a137

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.esm.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.esm.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 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

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff