MCPcopy Create free account
hub / github.com/TruthHun/BookStack / vendorPropName

Function vendorPropName

static/jquery/1.12.4/jquery.js:6862–6879  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

6860
6861// return a css property mapped to a potentially vendor prefixed property
6862function vendorPropName( name ) {
6863
6864 // shortcut for names that are not vendor prefixed
6865 if ( name in emptyStyle ) {
6866 return name;
6867 }
6868
6869 // check for vendor prefixed names
6870 var capName = name.charAt( 0 ).toUpperCase() + name.slice( 1 ),
6871 i = cssPrefixes.length;
6872
6873 while ( i-- ) {
6874 name = cssPrefixes[ i ] + capName;
6875 if ( name in emptyStyle ) {
6876 return name;
6877 }
6878 }
6879}
6880
6881function showHide( elements, show ) {
6882 var display, elem, hidden,

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected