From 778969c0002f140d699a86fe9bcd7f375f8d3087 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 1 Nov 2013 12:27:09 -0400 Subject: generate background hash under additional conditions --- js/reveal.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 9218ea9..b4633ed 100644 --- a/js/reveal.js +++ b/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 ); } -- cgit v1.2.3