MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / css

Function css

docs/static/js/bulma-carousel.js:169–181  ·  view source on GitHub ↗
(element, obj)

Source from the content-addressed store, hash-verified

167};
168
169var css = function css(element, obj) {
170 if (!obj) {
171 return window.getComputedStyle(element);
172 }
173 if (Object(__WEBPACK_IMPORTED_MODULE_0__type__["b" /* isObject */])(obj)) {
174 var style = '';
175 Object.keys(obj).forEach(function (key) {
176 style += key + ': ' + obj[key] + ';';
177 });
178
179 element.style.cssText += style;
180 }
181};
182
183/***/ }),
184/* 1 */

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected