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

Function setProp

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

Source from the content-addressed store, hash-verified

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

Callers 1

updateStyleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected