MCPcopy Index your code
hub / github.com/JsAaron/jQuery / vendorPropName

Function vendorPropName

2.1.1/src/css.js:39–59  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

37
38// Return a css property mapped to a potentially vendor prefixed property
39function vendorPropName( style, name ) {
40
41 // Shortcut for names that are not vendor prefixed
42 if ( name in style ) {
43 return name;
44 }
45
46 // Check for vendor prefixed names
47 var capName = name[0].toUpperCase() + name.slice(1),
48 origName = name,
49 i = cssPrefixes.length;
50
51 while ( i-- ) {
52 name = cssPrefixes[ i ] + capName;
53 if ( name in style ) {
54 return name;
55 }
56 }
57
58 return origName;
59}
60
61function setPositiveNumber( elem, value, subtract ) {
62 var matches = rnumsplit.exec( value );

Callers 1

css.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected