From: Brandon Aaron Date: Mon, 17 Sep 2007 18:20:51 +0000 (+0000) Subject: remove box global var from offset X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=415a0916b54a0dd3123893d67cc9091dd8ebe1d6;hp=456da2d4a805012003df3c1b173148368d3536f7;p=jquery.git remove box global var from offset --- diff --git a/src/offset.js b/src/offset.js index 3c63aae..f59fb9b 100644 --- a/src/offset.js +++ b/src/offset.js @@ -13,7 +13,7 @@ jQuery.fn.offset = function() { // Use getBoundingClientRect if available if ( elem.getBoundingClientRect ) { - box = elem.getBoundingClientRect(); + var box = elem.getBoundingClientRect(); // Add the document scroll offsets add(