diff options
author | Hakim El Hattab | 2012-02-17 23:37:14 -0500 |
---|---|---|
committer | Hakim El Hattab | 2012-02-17 23:37:14 -0500 |
commit | ba8fc0bc35c6715f2918d6f18cf15d5bad7f8644 (patch) | |
tree | 9ec9db11ac676d8b220bda120cebaafbec38a08c /js | |
parent | a53b315e2447393f614e3463c36ccd102a1d0c89 (diff) |
fix reference to old 'hasClass' method
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 6a33983..ff0c47a 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 = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>'; } |