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

Function vendorPropName

static/wangEditor/js/lib/jquery-2.2.1.js:5876–5893  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

5874
5875// Return a css property mapped to a potentially vendor prefixed property
5876function vendorPropName( name ) {
5877
5878 // Shortcut for names that are not vendor prefixed
5879 if ( name in emptyStyle ) {
5880 return name;
5881 }
5882
5883 // Check for vendor prefixed names
5884 var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
5885 i = cssPrefixes.length;
5886
5887 while ( i-- ) {
5888 name = cssPrefixes[ i ] + capName;
5889 if ( name in emptyStyle ) {
5890 return name;
5891 }
5892 }
5893}
5894
5895function setPositiveNumber( elem, value, subtract ) {
5896

Callers 1

jquery-2.2.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected