Commit 4566fc39 authored by Vadim Makeev's avatar Vadim Makeev

className.indexOf replaced with classList.contains

parent 85f48e12
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
function getContainingSlideId(el) { function getContainingSlideId(el) {
var node = el; var node = el;
while ('BODY' !== node.nodeName && 'HTML' !== node.nodeName) { while ('BODY' !== node.nodeName && 'HTML' !== node.nodeName) {
if (-1 !== node.className.indexOf('slide')) { if (node.classList.contains('slide')) {
return node.id; return node.id;
} else { } else {
node = node.parentNode; node = node.parentNode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment