MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / setPositiveNumber

Function setPositiveNumber

libs/jquery-3.5.1/jquery-2.2.4.js:5901–5911  ·  view source on GitHub ↗
( elem, value, subtract )

Source from the content-addressed store, hash-verified

5899}
5900
5901function setPositiveNumber( elem, value, subtract ) {
5902
5903 // Any relative (+/-) values have already been
5904 // normalized at this point
5905 var matches = rcssNum.exec( value );
5906 return matches ?
5907
5908 // Guard against undefined "subtract", e.g., when used as in cssHooks
5909 Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
5910 value;
5911}
5912
5913function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
5914 var i = extra === ( isBorderBox ? "border" : "content" ) ?

Callers 1

jquery-2.2.4.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected