Skip to content

Commit c336b74

Browse files
JisanAR03DonnieBLT
authored andcommitted
fixed some little issue
1 parent fd032d0 commit c336b74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/static/js/jquery.caret.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
offset = this.getOldIEOffset();
126126
}
127127
if (offset) {
128-
if (oWindow && typeof oWindow === 'object' && 'scrollTo' in oWindow && 'document' in oWindow) {offset.top += $(oWindow).scrollTop();offset.left += $(oWindow).scrollLeft();}
129-
else {console.error('oWindow is not a valid window object.');}
128+
if (oWindow && typeof oWindow === 'object' && 'scrollTo' in oWindow && 'document' in oWindow) {offset.top += $(oWindow).scrollTop();} else {console.error('oWindow is not a valid window object for scrolltop.');}
129+
offset.left += $(oWindow).scrollLeft();
130130
}
131131
return offset;
132132
};

0 commit comments

Comments
 (0)