MCPcopy Index your code
hub / github.com/JsAaron/jQuery / vendorPropName

Function vendorPropName

2.0.3/Css.js:29–49  ·  view source on GitHub ↗
(style, name)

Source from the content-addressed store, hash-verified

27 // return a css property mapped to a potentially vendor prefixed property
28
29 function vendorPropName(style, name) {
30
31 // shortcut for names that are not vendor prefixed
32 if (name in style) {
33 return name;
34 }
35
36 // check for vendor prefixed names
37 var capName = name.charAt(0).toUpperCase() + name.slice(1),
38 origName = name,
39 i = cssPrefixes.length;
40
41 while (i--) {
42 name = cssPrefixes[i] + capName;
43 if (name in style) {
44 return name;
45 }
46 }
47
48 return origName;
49 }
50
51 function isHidden(elem, el) {
52 // isHidden might be called from jQuery#filter function;

Callers 1

Css.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected