src/css_composer/model/CssRule.js
/**
   * Return selectors fo the rule as a string
   * @return {string}
   */
Return selectors fo the rule as a string
@return {string}
Return selectors fo the rule as a string @return { string }
selectorsToString(opts = {}) {
    const result = [];
    const state = this.get('state');
    const wrapper = this.get('wrapper');
    const addSelector = this.get('selectorsAdd');
    const isBody = wrapper && opts.body;
    const selOpts = {
      escape: str => (CSS && CSS.escape ? CSS.escape(str) : str)
    };
    const selectors = isBody
      ? 'body'
      : this.get('selectors').getFullString(0, selOpts);
    const stateStr = state && !opts.skipState ? `:${state}` : '';
    selectors && result.push(`${selectors}${stateStr}`);
    addSelector && !opts.skipAdd && result.push(addSelector);
    return result.join(', ');
  }
selectorsToString ( opts = { } ) { const result = [ ] ; const state = this . get ( 'state' ) ; const wrapper = this . get ( 'wrapper' ) ; const addSelector = this . get ( 'selectorsAdd' ) ; const isBody = wrapper && opts . body ; const selOpts = { escape : str => ( CSS && CSS . escape ? CSS . escape ( str ) : str ) } ; const selectors = isBody ? 'body' : this . get ( 'selectors' ) . getFullString ( 0 , selOpts ) ; const stateStr = state && ! opts . skipState ? ` ${ state } ` : '' ; selectors && result . push ( ` ${ selectors } ${ stateStr } ` ) ; addSelector && ! opts . skipAdd && result . push ( addSelector ) ; return result . join ( ', ' ) ; }
Return selectors fo the rule as a string
 @return {string}
Return selectors fo the rule as a string @return { string }