Skip to content

Commit d75a274

Browse files
committed
Fixed invalid variable
1 parent 56542fb commit d75a274

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

intro.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@
762762
* @param {Object} targetElement
763763
*/
764764
function _showElement(targetElement) {
765-
766765
if (typeof (this._introChangeCallback) !== 'undefined') {
767766
this._introChangeCallback.call(this, targetElement.element);
768767
}
@@ -839,7 +838,7 @@
839838
_placeTooltip.call(self, targetElement.element, oldtooltipContainer, oldArrowLayer, oldHelperNumberLayer);
840839

841840
//change active bullet
842-
if (this._options.showBullets === false) {
841+
if (self._options.showBullets) {
843842
oldReferenceLayer.querySelector('.introjs-bullets li > a.active').className = '';
844843
oldReferenceLayer.querySelector('.introjs-bullets li > a[data-stepnumber="' + targetElement.step + '"]').className = 'active';
845844
}

0 commit comments

Comments
 (0)