Browse Source

rename variable

pull/1054/head
Arthur Almeida 9 years ago
parent
commit
11cb0563bc
  1. 2
      src/code_manager/model/CssGenerator.js
  2. 6
      src/editor/model/Editor.js

2
src/code_manager/model/CssGenerator.js

@ -97,7 +97,7 @@ module.exports = require('backbone').Model.extend({
if ( if (
this.compCls.indexOf(name) >= 0 || this.compCls.indexOf(name) >= 0 ||
this.ids.indexOf(name) >= 0 || this.ids.indexOf(name) >= 0 ||
opts.dumpUnusedSelectors opts.dumpUnusedStyles
) { ) {
found = 1; found = 1;
} }

6
src/editor/model/Editor.js

@ -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
}) })
); );
}, },

Loading…
Cancel
Save