|
132 | 132 | intro: currentElement.getAttribute('data-intro'),
|
133 | 133 | step: parseInt(currentElement.getAttribute('data-step'), 10),
|
134 | 134 | tooltipClass: currentElement.getAttribute('data-tooltipClass'),
|
135 |
| - highlightClass: currentElement.getAttribute('data-highlightClass') || this._options.highlightClass, |
| 135 | + highlightClass: currentElement.getAttribute('data-highlightClass'), |
136 | 136 | position: currentElement.getAttribute('data-position') || this._options.tooltipPosition
|
137 | 137 | };
|
138 | 138 | }
|
|
159 | 159 | intro: currentElement.getAttribute('data-intro'),
|
160 | 160 | step: nextStep + 1,
|
161 | 161 | tooltipClass: currentElement.getAttribute('data-tooltipClass'),
|
162 |
| - highlightClass: currentElement.getAttribute('data-highlightClass') || this._options.highlightClass, |
| 162 | + highlightClass: currentElement.getAttribute('data-highlightClass'), |
163 | 163 | position: currentElement.getAttribute('data-position') || this._options.tooltipPosition
|
164 | 164 | };
|
165 | 165 | }
|
|
662 | 662 | highlightClass = 'introjs-helperLayer',
|
663 | 663 | elementPosition = _getOffset(targetElement.element);
|
664 | 664 |
|
665 |
| - if (targetElement.highlightClass) { |
| 665 | + //check for a current step highlight class |
| 666 | + if (typeof (targetElement.highlightClass) === 'string') { |
666 | 667 | highlightClass += (' ' + targetElement.highlightClass);
|
667 | 668 | }
|
| 669 | + //check for options highlight class |
| 670 | + if (typeof (this._options.highlightClass) === 'string') { |
| 671 | + highlightClass += (' ' + this._options.highlightClass); |
| 672 | + } |
668 | 673 |
|
669 | 674 | if (oldHelperLayer != null) {
|
670 | 675 | var oldHelperNumberLayer = oldReferenceLayer.querySelector('.introjs-helperNumberLayer'),
|
|
0 commit comments