UNPKG

cssobj-plugin-post-csstext

Version:

https://github.com/cssobj/cssobj-plugin-post-csstext

1 lines 508 B
var cssobj_plugin_post_csstext=function(){"use strict";function n(n,t,s,e,u){n[t]=t in n?[].concat(n[t]):[],u&&n[t].indexOf(s)>-1||(e?n[t].unshift(s):n[t].push(s))}function t(n){var t=function(t){"function"==typeof n&&n(t)};return function(n){var s=n.cssdom;if(!s)return t(""),n;var e=s.sheet||s.styleSheet;if(e.cssText)return t(e.cssText),n;for(var u="",r=e.cssRules||e.rules,c=0,i=r.length;c<i;c++)u+=r[c].cssText+"\n";return t(u),n}}return t.addPlugin=function(s,e){n(s.options.plugins,"post",t(e))},t}();