Skip to content

Commit 2302fe3

Browse files
committed
Fix bad indentation and add comment to the code
1 parent a851e6d commit 2302fe3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

intro.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,9 @@
452452

453453
var tooltipButtonsLayer = tooltipLayer.querySelector('.introjs-tooltipbuttons');
454454
tooltipButtonsLayer.appendChild(skipTooltipButton);
455-
456-
if(this._introItems.length > 1) {
455+
456+
//in order to prevent displaying next/previous button always
457+
if (this._introItems.length > 1) {
457458
tooltipButtonsLayer.appendChild(prevTooltipButton);
458459
tooltipButtonsLayer.appendChild(nextTooltipButton);
459460
}

0 commit comments

Comments
 (0)