Skip to content

Commit 3518bde

Browse files
committed
Merge branch 'babel-ie11' of github.com:usablica/intro.js into babel-ie11
2 parents 5f6e872 + 9f97be1 commit 3518bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/introForElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function introForElement(targetElm, group) {
102102
if (step > 0) {
103103
introItems[step - 1] = {
104104
element: currentElement,
105-
title: currentElement.getAttribute("data-title"),
105+
title: currentElement.getAttribute("data-title") || '',
106106
intro: currentElement.getAttribute("data-intro"),
107107
step: parseInt(currentElement.getAttribute("data-step"), 10),
108108
tooltipClass: currentElement.getAttribute("data-tooltipclass"),
@@ -148,7 +148,7 @@ export default function introForElement(targetElm, group) {
148148

149149
introItems[nextStep] = {
150150
element: currentElement,
151-
title: currentElement.getAttribute("data-title"),
151+
title: currentElement.getAttribute("data-title") || '',
152152
intro: currentElement.getAttribute("data-intro"),
153153
step: nextStep + 1,
154154
tooltipClass: currentElement.getAttribute("data-tooltipclass"),

0 commit comments

Comments
 (0)