Cleaning up some un-needed CSS code and adding back a temporary (deprecated) curCSS method.
This commit is contained in:
parent
51d258074c
commit
6541eb9d80
2 changed files with 10 additions and 9 deletions
|
@ -8,14 +8,14 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
|
|||
// innerHeight and innerWidth
|
||||
jQuery.fn["inner" + name] = function() {
|
||||
return this[0] ?
|
||||
parseFloat( jQuery.css( this[0], type, undefined, "padding" ), 10 ) :
|
||||
parseFloat( jQuery.css( this[0], type, "padding" ), 10 ) :
|
||||
null;
|
||||
};
|
||||
|
||||
// outerHeight and outerWidth
|
||||
jQuery.fn["outer" + name] = function( margin ) {
|
||||
return this[0] ?
|
||||
parseFloat( jQuery.css( this[0], type, undefined, margin ? "margin" : "border" ), 10 ) :
|
||||
parseFloat( jQuery.css( this[0], type, margin ? "margin" : "border" ), 10 ) :
|
||||
null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue