MCPcopy Create free account
hub / github.com/TruthHun/BookStack / setPositiveNumber

Function setPositiveNumber

static/jquery/1.12.4/jquery.js:6938–6945  ·  view source on GitHub ↗
( elem, value, subtract )

Source from the content-addressed store, hash-verified

6936}
6937
6938function setPositiveNumber( elem, value, subtract ) {
6939 var matches = rnumsplit.exec( value );
6940 return matches ?
6941
6942 // Guard against undefined "subtract", e.g., when used as in cssHooks
6943 Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
6944 value;
6945}
6946
6947function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
6948 var i = extra === ( isBorderBox ? "border" : "content" ) ?

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected