MCPcopy Create free account
hub / github.com/idank/explainshell / vendorPropName

Function vendorPropName

explainshell/web/static/js/jquery.js:6640–6660  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

6638
6639// return a css property mapped to a potentially vendor prefixed property
6640function vendorPropName( style, name ) {
6641
6642 // shortcut for names that are not vendor prefixed
6643 if ( name in style ) {
6644 return name;
6645 }
6646
6647 // check for vendor prefixed names
6648 var capName = name.charAt(0).toUpperCase() + name.slice(1),
6649 origName = name,
6650 i = cssPrefixes.length;
6651
6652 while ( i-- ) {
6653 name = cssPrefixes[ i ] + capName;
6654 if ( name in style ) {
6655 return name;
6656 }
6657 }
6658
6659 return origName;
6660}
6661
6662function isHidden( elem, el ) {
6663 // isHidden might be called from jQuery#filter function;

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected