remove trailing spaces
[jquery.git] / src / dimensions.js
index 2ba8f67..606b105 100644 (file)
@@ -1,25 +1,21 @@
 // Create innerHeight, innerWidth, outerHeight and outerWidth methods
 jQuery.each([ "Height", "Width" ], function(i, name){
 
-       var tl = i ? "Left"  : "Top",  // top or left
-               br = i ? "Right" : "Bottom", // bottom or right
-               lower = name.toLowerCase();
+       var type = name.toLowerCase();
 
        // innerHeight and innerWidth
        jQuery.fn["inner" + name] = function(){
                return this[0] ?
-                       jQuery.css( this[0], lower, false, "padding" ) :
+                       jQuery.css( this[0], type, false, "padding" ) :
                        null;
        };
 
        // outerHeight and outerWidth
        jQuery.fn["outer" + name] = function(margin) {
                return this[0] ?
-                       jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
+                       jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
                        null;
        };
-       
-       var type = name.toLowerCase();
 
        jQuery.fn[ type ] = function( size ) {
                // Get window width or height