Commit e5470620 authored by miripiruni's avatar miripiruni

Shower::prev: added prevSteps check

parent 51796e47
...@@ -107,6 +107,10 @@ window.shower = window.shower || (function(window, document, undefined) { ...@@ -107,6 +107,10 @@ window.shower = window.shower || (function(window, document, undefined) {
prevSteps = document.getElementById(slide.id).querySelectorAll('.next.active'); prevSteps = document.getElementById(slide.id).querySelectorAll('.next.active');
if ( ! prevSteps || prevSteps.length < 1) {
return false;
}
if (slide.innerComplete > 0) { if (slide.innerComplete > 0) {
slide.innerComplete--; slide.innerComplete--;
prevSteps[prevSteps.length - 1].classList.remove('active'); prevSteps[prevSteps.length - 1].classList.remove('active');
......
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