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

Function setProp

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

Source from the content-addressed store, hash-verified

5615var cssVarRE = /^--/;
5616var importantRE = /\s*!important$/;
5617var setProp = function (el, name, val) {
5618 /* istanbul ignore if */
5619 if (cssVarRE.test(name)) {
5620 el.style.setProperty(name, val);
5621 } else if (importantRE.test(val)) {
5622 el.style.setProperty(name, val.replace(importantRE, ''), 'important');
5623 } else {
5624 el.style[normalize(name)] = val;
5625 }
5626};
5627
5628var prefixes = ['Webkit', 'Moz', 'ms'];
5629

Callers 1

updateStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected