|
|
@ -305,16 +305,18 @@ module.exports = Backbone.Model.extend({ |
|
|
const config = this.config; |
|
|
const config = this.config; |
|
|
const wrappesIsBody = config.wrappesIsBody; |
|
|
const wrappesIsBody = config.wrappesIsBody; |
|
|
const avoidProt = opts.avoidProtected; |
|
|
const avoidProt = opts.avoidProtected; |
|
|
const dumpUnusedSelectors = opts.dumpUnusedSelectors || false; |
|
|
const dumpUnusedStyles = |
|
|
|
|
|
opts.dumpUnusedStyles || this.config.dumpUnusedStyles; |
|
|
const cssc = this.get('CssComposer'); |
|
|
const cssc = this.get('CssComposer'); |
|
|
const wrp = this.get('DomComponents').getComponent(); |
|
|
const wrp = this.get('DomComponents').getComponent(); |
|
|
const protCss = !avoidProt ? config.protectedCss : ''; |
|
|
const protCss = !avoidProt ? config.protectedCss : ''; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
protCss + |
|
|
protCss + |
|
|
this.get('CodeManager').getCode(wrp, 'css', { |
|
|
this.get('CodeManager').getCode(wrp, 'css', { |
|
|
cssc, |
|
|
cssc, |
|
|
wrappesIsBody, |
|
|
wrappesIsBody, |
|
|
dumpUnusedSelectors |
|
|
dumpUnusedStyles |
|
|
}) |
|
|
}) |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
|