Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 042012c

Browse files
committed
Fix coding style issues
1 parent ce30388 commit 042012c

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
@@ -539,11 +539,11 @@
539539
top = rect.bottom - (rect.bottom - rect.top),
540540
bottom = rect.bottom - winHeight;
541541

542-
// Scroll up
542+
//Scroll up
543543
if (top < 0 || targetElement.element.clientHeight > winHeight) {
544544
window.scrollBy(0, top - 30); // 30px padding from edge to look nice
545545

546-
// Scroll down
546+
//Scroll down
547547
} else {
548548
window.scrollBy(0, bottom + 100); // 70px + 30px padding from edge to look nice
549549
}
@@ -569,7 +569,7 @@
569569
}
570570

571571
//Prevent exception in IE
572-
if(propValue && propValue.toLowerCase) {
572+
if (propValue && propValue.toLowerCase) {
573573
return propValue.toLowerCase();
574574
} else {
575575
return propValue;
@@ -643,7 +643,7 @@
643643
targetElm.appendChild(overlayLayer);
644644

645645
overlayLayer.onclick = function() {
646-
if(self._options.exitOnOverlayClick == true) {
646+
if (self._options.exitOnOverlayClick == true) {
647647
_exitIntro.call(self, targetElm);
648648
}
649649
//check if any callback is defined

0 commit comments

Comments
 (0)