( elem, value, subtract )
| 59 | } |
| 60 | |
| 61 | function setPositiveNumber( elem, value, subtract ) { |
| 62 | var matches = rnumsplit.exec( value ); |
| 63 | return matches ? |
| 64 | // Guard against undefined "subtract", e.g., when used as in cssHooks |
| 65 | Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : |
| 66 | value; |
| 67 | } |
| 68 | |
| 69 | function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { |
| 70 | var i = extra === ( isBorderBox ? "border" : "content" ) ? |