First pass at unifying the various CSS methods in jQuery (jQuery.style, jQuery.curCSS, and jQuery.css are now all under jQuery.css).
This commit is contained in:
parent
2912f8ab95
commit
920099b29c
5 changed files with 71 additions and 99 deletions
|
@ -6,14 +6,14 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
|
|||
// innerHeight and innerWidth
|
||||
jQuery.fn["inner" + name] = function() {
|
||||
return this[0] ?
|
||||
jQuery.css( this[0], type, false, "padding" ) :
|
||||
jQuery.css( this[0], type, undefined, false, "padding" ) :
|
||||
null;
|
||||
};
|
||||
|
||||
// outerHeight and outerWidth
|
||||
jQuery.fn["outer" + name] = function( margin ) {
|
||||
return this[0] ?
|
||||
jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
|
||||
jQuery.css( this[0], type, undefined, false, margin ? "margin" : "border" ) :
|
||||
null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue