Parcourir la source

generate background hash under additional conditions

Hakim El Hattab il y a 11 ans
Parent
commit
778969c000
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2 0
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 0
js/reveal.js

@@ -457,7 +457,9 @@ var Reveal = (function(){
 				else {
 					element.style.background = data.background;
 				}
+			}
 
+			if( data.background || data.backgroundColor || data.backgroundImage ) {
 				element.setAttribute( 'data-background-hash', data.background + data.backgroundSize + data.backgroundImage + data.backgroundColor + data.backgroundRepeat + data.backgroundPosition + data.backgroundTransition );
 			}
 

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
js/reveal.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff