// 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
- type = name.toLowerCase();
+ var type = name.toLowerCase();
// innerHeight and innerWidth
jQuery.fn["inner" + name] = function(){
jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
null;
};
-
+
jQuery.fn[ type ] = function( size ) {
// Get window width or height
return this[0] == window ?