Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix reference to old 'hasClass' method

  • Loading branch information...
commit ba8fc0bc35c6715f2918d6f18cf15d5bad7f8644 1 parent a53b315
Hakim El Hattab hakimel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/reveal.js
2  js/reveal.js
View
@@ -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>';
}
Please sign in to comment.
Something went wrong with that request. Please try again.