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

Function setProp

static/vuejs/vue.common.js:6067–6076  ·  view source on GitHub ↗
(el, name, val)

Source from the content-addressed store, hash-verified

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

Callers 1

updateStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected