From a94a99dad32b86e04d70f18f5b49401e43fc0a1d Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 1 May 2013 16:34:39 -0700 Subject: support hidding slides with hidden attribute AND hidden class --- js/slide-deck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/slide-deck.js b/js/slide-deck.js index 853bed3..d792ddd 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js @@ -65,7 +65,7 @@ SlideDeck.prototype.loadSlide = function(slideNo) { SlideDeck.prototype.onDomLoaded_ = function(e) { document.body.classList.add('loaded'); // Add loaded class for templates to use. - this.slides = this.container.querySelectorAll('slide:not([hidden]):not(.backdrop)'); + this.slides = this.container.querySelectorAll('slide:not([hidden]):not(.hidden):not(.backdrop)'); // If we're on a smartphone, apply special sauce. if (Modernizr.mq('only screen and (max-device-width: 480px)')) { -- cgit v1.2.3