projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a53b315
)
fix reference to old 'hasClass' method
author
Hakim El Hattab
<hakim.elhattab@gmail.com>
Sat, 18 Feb 2012 04:37:14 +0000
(23:37 -0500)
committer
Hakim El Hattab
<hakim.elhattab@gmail.com>
Sat, 18 Feb 2012 04:37:14 +0000
(23:37 -0500)
js/reveal.js
patch
|
blob
|
history
diff --git
a/js/reveal.js
b/js/reveal.js
index 6a3398313cdf4d094905f8db123a3370ade011f0..ff0c47a4172ac405d62fcefb9decc15d111765b4 100644
(file)
--- 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 || !
hasClas
s( node, 'roll' ) ) ) {
+ if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !
node.classList.contain
s( node, 'roll' ) ) ) {
node.classList.add( 'roll' );
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
}