generate background hash under additional conditions

This commit is contained in:
Hakim El Hattab committed 2013-11-01 12:27:09 -04:00
1 parent fcf91ec261
commit 778969c000
2 files changed
+5 -2

No files matched your search

+2
View File
@@ -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 );
}