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

Function vendorPropName

notes/docsify/unpkg/gotop/jquery-2.1.0.js:5658–5678  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

5656
5657// return a css property mapped to a potentially vendor prefixed property
5658function vendorPropName( style, name ) {
5659
5660 // shortcut for names that are not vendor prefixed
5661 if ( name in style ) {
5662 return name;
5663 }
5664
5665 // check for vendor prefixed names
5666 var capName = name[0].toUpperCase() + name.slice(1),
5667 origName = name,
5668 i = cssPrefixes.length;
5669
5670 while ( i-- ) {
5671 name = cssPrefixes[ i ] + capName;
5672 if ( name in style ) {
5673 return name;
5674 }
5675 }
5676
5677 return origName;
5678}
5679
5680function setPositiveNumber( elem, value, subtract ) {
5681 var matches = rnumsplit.exec( value );

Callers 1

jquery-2.1.0.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected