X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Foffset.js;h=46b971bc9614dc3b16e64d35f3e0992b96e971be;hb=feb9051c0e29937c2494c3db0862a671efc21747;hp=257035816169df4face0b3c50a289b900850806d;hpb=4e339ef5573dc6472c00c01a3de883346e6b03a3;p=jquery.git diff --git a/src/offset.js b/src/offset.js index 2570358..46b971b 100644 --- a/src/offset.js +++ b/src/offset.js @@ -85,8 +85,6 @@ jQuery.fn.offset = function() { results = { top: top, left: left }; } - return results; - function border(elem) { add( jQuery.css(elem, "borderLeftWidth"), jQuery.css(elem, "borderTopWidth") ); } @@ -95,4 +93,6 @@ jQuery.fn.offset = function() { left += parseInt(l) || 0; top += parseInt(t) || 0; } + + return results; };