Skip to content

Commit

Permalink
Fixes #289
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed May 4, 2015
1 parent fdb466c commit 5661c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dropkick.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ var
position: function( elem, relative ) {
var pos = { top: 0, left: 0 };

while ( elem !== relative ) {
while ( elem && elem !== relative ) {
pos.top += elem.offsetTop;
pos.left += elem.offsetLeft;
elem = elem.parentNode;
Expand Down

0 comments on commit 5661c3a

Please sign in to comment.