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

Function vendorPropName

2.0.3/2.0.3.js:6196–6216  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

6194
6195// return a css property mapped to a potentially vendor prefixed property
6196 function vendorPropName( style, name ) {
6197
6198 // shortcut for names that are not vendor prefixed
6199 if ( name in style ) {
6200 return name;
6201 }
6202
6203 // check for vendor prefixed names
6204 var capName = name.charAt(0).toUpperCase() + name.slice(1),
6205 origName = name,
6206 i = cssPrefixes.length;
6207
6208 while ( i-- ) {
6209 name = cssPrefixes[ i ] + capName;
6210 if ( name in style ) {
6211 return name;
6212 }
6213 }
6214
6215 return origName;
6216 }
6217
6218 function isHidden( elem, el ) {
6219 // isHidden might be called from jQuery#filter function;

Callers 1

2.0.3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected