MCPcopy Create free account
hub / github.com/sql-js/sql.js / setPositiveNumber

Function setPositiveNumber

documentation/javascript/application.js:7647–7652  ·  view source on GitHub ↗
( elem, value, subtract )

Source from the content-addressed store, hash-verified

7645}
7646
7647function setPositiveNumber( elem, value, subtract ) {
7648 var matches = rnumsplit.exec( value );
7649 return matches ?
7650 Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
7651 value;
7652}
7653
7654function augmentWidthOrHeight( elem, name, extra, isBorderBox ) {
7655 var i = extra === ( isBorderBox ? "border" : "content" ) ?

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…