]> source.dussan.org Git - jquery.git/commitdiff
remove box global var from offset
authorBrandon Aaron <brandon.aaron@gmail.com>
Mon, 17 Sep 2007 18:20:51 +0000 (18:20 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Mon, 17 Sep 2007 18:20:51 +0000 (18:20 +0000)
src/offset.js

index 3c63aae920cf2d2e6292088b03ddb8787b15ad33..f59fb9b27caa565d414f4b759de81ecf351ac0e0 100644 (file)
@@ -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(