MCPcopy Create free account
hub / github.com/docker/getting-started / getSupportedPropertyName

Function getSupportedPropertyName

app/src/static/js/react-bootstrap.js:3946–3960  ·  view source on GitHub ↗

* Get the prefixed supported property name * @method * @memberof Popper.Utils * @argument {String} property (camelCase) * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)

(property)

Source from the content-addressed store, hash-verified

3944
3945
3946function getSupportedPropertyName(property) {
3947 var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
3948 var upperProp = property.charAt(0).toUpperCase() + property.slice(1);
3949
3950 for (var i = 0; i < prefixes.length; i++) {
3951 var prefix = prefixes[i];
3952 var toCheck = prefix ? '' + prefix + upperProp : property;
3953
3954 if (typeof document.body.style[toCheck] !== 'undefined') {
3955 return toCheck;
3956 }
3957 }
3958
3959 return null;
3960}
3961/**
3962 * Destroys the popper.
3963 * @method

Callers 3

destroyFunction · 0.85
computeStyleFunction · 0.85
preventOverflowFunction · 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…