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

Function setProp

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

Source from the content-addressed store, hash-verified

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

Callers 1

updateStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected