MCPcopy Create free account
hub / github.com/JsAaron/jQuery / vendorPropName

Function vendorPropName

2.1.1/test/other.js:3118–3138  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

3116
3117// return a css property mapped to a potentially vendor prefixed property
3118function vendorPropName( style, name ) {
3119
3120 // shortcut for names that are not vendor prefixed
3121 if ( name in style ) {
3122 return name;
3123 }
3124
3125 // check for vendor prefixed names
3126 var capName = name[0].toUpperCase() + name.slice(1),
3127 origName = name,
3128 i = cssPrefixes.length;
3129
3130 while ( i-- ) {
3131 name = cssPrefixes[ i ] + capName;
3132 if ( name in style ) {
3133 return name;
3134 }
3135 }
3136
3137 return origName;
3138}
3139
3140function setPositiveNumber( elem, value, subtract ) {
3141 var matches = rnumsplit.exec( value );

Callers 1

other.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected