1
0
mirror of synced 2025-12-16 12:04:23 +08:00
Files
eruda/test/util.js
2017-09-20 13:17:18 +08:00

35 lines
772 B
JavaScript

// Built by eustia.
window._ = (function()
{
var _ = {};
if (typeof window === 'object' && window._) _ = window._;
/* ------------------------------ evalCss ------------------------------ */
_.evalCss = (function ()
{
var mark = [];
function exports(css)
{
for (var i = 0, len = mark.length; i < len; i++)
{
if (mark[i] === css) return;
}
mark.push(css);
var container = exports.container || document.head,
style = document.createElement('style');
style.type = 'text/css';
style.textContent = css;
container.appendChild(style);
}
return exports;
})();
return _;
})();