MCPcopy Create free account
hub / github.com/microsoft/SandDance / prefixed

Function prefixed

docs/app/js/sanddance-app.js:92734–92745  ·  view source on GitHub ↗

* get the prefixed property * @param {Object} obj * @param {String} property * @returns {String|Undefined} prefixed

(obj, property)

Source from the content-addressed store, hash-verified

92732 * @param {String} property
92733 * @returns {String|Undefined} prefixed
92734 */ function prefixed(obj, property) {
92735 var prefix, prop;
92736 var camelProp = property[0].toUpperCase() + property.slice(1);
92737 var i = 0;
92738 while(i < VENDOR_PREFIXES.length){
92739 prefix = VENDOR_PREFIXES[i];
92740 prop = prefix ? prefix + camelProp : property;
92741 if (prop in obj) return prop;
92742 i++;
92743 }
92744 return undefined;
92745 }
92746 /**
92747 * get a unique id
92748 * @returns {number} uniqueId

Callers 2

sanddance-app.jsFile · 0.70
toggleCssPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected