Преглед на файлове

fix issue when disabling autoPlay config flag at runtime

Hakim El Hattab преди 1 година
родител
ревизия
76ec60a137
променени са 5 файла, в които са добавени 5 реда и са изтрити 0 реда
  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

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/reveal.esm.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/reveal.esm.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/reveal.js


Файловите разлики са ограничени, защото са твърде много
+ 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

Някои файлове не бяха показани, защото твърде много файлове са промени