remove box global var from offset
[jquery.git] / src / offset.js
index 3c63aae..f59fb9b 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(