MCPcopy Create free account
hub / github.com/sql-js/sql.js / vendorPropName

Function vendorPropName

documentation/javascript/application.js:7312–7332  ·  view source on GitHub ↗
( style, name )

Source from the content-addressed store, hash-verified

7310
7311// return a css property mapped to a potentially vendor prefixed property
7312function vendorPropName( style, name ) {
7313
7314 // shortcut for names that are not vendor prefixed
7315 if ( name in style ) {
7316 return name;
7317 }
7318
7319 // check for vendor prefixed names
7320 var capName = name.charAt(0).toUpperCase() + name.slice(1),
7321 origName = name,
7322 i = cssPrefixes.length;
7323
7324 while ( i-- ) {
7325 name = cssPrefixes[ i ] + capName;
7326 if ( name in style ) {
7327 return name;
7328 }
7329 }
7330
7331 return origName;
7332}
7333
7334function isHidden( elem, el ) {
7335 elem = el || elem;

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…