From ba8fc0bc35c6715f2918d6f18cf15d5bad7f8644 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 17 Feb 2012 23:37:14 -0500 Subject: [PATCH] fix reference to old 'hasClass' method --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 6a339831..ff0c47a4 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -293,7 +293,7 @@ var Reveal = (function(){ for( var i = 0, len = nodes.length; i < len; i++ ) { var node = nodes[i]; - if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !hasClass( node, 'roll' ) ) ) { + if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !node.classList.contains( node, 'roll' ) ) ) { node.classList.add( 'roll' ); node.innerHTML = '' + node.innerHTML + ''; }