MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / setPositiveNumber

Function setPositiveNumber

notes/docsify/unpkg/gotop/jquery-2.1.0.js:5680–5686  ·  view source on GitHub ↗
( elem, value, subtract )

Source from the content-addressed store, hash-verified

5678}
5679
5680function setPositiveNumber( elem, value, subtract ) {
5681 var matches = rnumsplit.exec( value );
5682 return matches ?
5683 // Guard against undefined "subtract", e.g., when used as in cssHooks
5684 Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
5685 value;
5686}
5687
5688function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
5689 var i = extra === ( isBorderBox ? "border" : "content" ) ?

Callers 1

jquery-2.1.0.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected