fix reference to old 'hasClass' method
This commit is contained in:
parent
a53b315e24
commit
ba8fc0bc35
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ var Reveal = (function(){
|
||||||
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
||||||
var node = nodes[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.classList.add( 'roll' );
|
||||||
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue