Ver Fonte

fix issue when disabling autoPlay config flag at runtime

Hakim El Hattab há 1 ano atrás
pai
commit
76ec60a137
5 ficheiros alterados com 5 adições e 0 exclusões
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.esm.js.map
  3. 0 0
      dist/reveal.js
  4. 0 0
      dist/reveal.js.map
  5. 5 0
      js/controllers/backgrounds.js

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.esm.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.esm.js.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.js


Diff do ficheiro 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 ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff