diff --git a/addStyles.js b/addStyles.js index af770cd..9f57629 100644 --- a/addStyles.js +++ b/addStyles.js @@ -1,7 +1,8 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ +/** + * MIT License http://www.opensource.org/licenses/mit-license.php + * Tobias Koppers @sokra + * Vitaliy Filippov vitalif@yourcmc.ru + */ var stylesInDom = {}, memoize = function(fn) { var memo; @@ -42,15 +43,17 @@ module.exports = function(list, options) { options = options || {}; options.attrs = typeof options.attrs === "object" ? options.attrs : {}; - // Force single-tag solution on IE6-9, which has a hard limit on the # of "; + } + else + { + return collectedStyles.map((style, idx) => + "" + ).join(''); + } +} + +module.exports.addStyles = addStyles; +module.exports.getStyleList = getStyleList; +module.exports.getStyles = getStyles;