Skip to content

Commit d654af7

Browse files
committed
Handle changing the exitOnOverlayClick option after calling start()
1 parent e602d40 commit d654af7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

intro.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,11 @@
522522

523523
targetElm.appendChild(overlayLayer);
524524

525-
if(this._options.exitOnOverlayClick) {
526-
overlayLayer.onclick = function() {
525+
overlayLayer.onclick = function() {
526+
if(self._options.exitOnOverlayClick) {
527527
_exitIntro.call(self, targetElm);
528-
};
529-
}
528+
}
529+
};
530530

531531
setTimeout(function() {
532532
styleText += 'opacity: .5;';

0 commit comments

Comments
 (0)