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

Function setProp

static/vuejs/vue.esm.js:6065–6074  ·  view source on GitHub ↗
(el, name, val)

Source from the content-addressed store, hash-verified

6063var cssVarRE = /^--/;
6064var importantRE = /\s*!important$/;
6065var setProp = function (el, name, val) {
6066 /* istanbul ignore if */
6067 if (cssVarRE.test(name)) {
6068 el.style.setProperty(name, val);
6069 } else if (importantRE.test(val)) {
6070 el.style.setProperty(name, val.replace(importantRE, ''), 'important');
6071 } else {
6072 el.style[normalize(name)] = val;
6073 }
6074};
6075
6076var prefixes = ['Webkit', 'Moz', 'ms'];
6077

Callers 1

updateStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected