lib/js/ComponentView.js
function() {
        var styles = {},
            viewOptions = component.get('viewOptions'),
            title = viewOptions.get('title') || '',
            background = viewOptions.get('background'),
            css = component.get('css');
        for (var selector in css) {
          styles['#' + component.id + ' ' + selector] = css[selector];
        }
        $.styleSheet(styles, 'nm-cv-css-' + component.id);
        t.$('.nm-cv')
          .toggleClass('background', background === true)
          .toggleClass('title', title.length > 0);
        t.$('.nm-cv-title span').text(title);
      }
function() {
        var styles = {},
            viewOptions = component.get('viewOptions'),
            title = viewOptions.get('title') || '',
            background = viewOptions.get('background'),
            css = component.get('css');
        for (var selector in css) {
          styles['#' + component.id + ' ' + selector] = css[selector];
        }
        $.styleSheet(styles, 'nm-cv-css-' + component.id);
        t.$('.nm-cv')
          .toggleClass('background', background === true)
          .toggleClass('title', title.length > 0);
        t.$('.nm-cv-title span').text(title);
      }
function ( ) { var styles = { } , viewOptions = component . get ( 'viewOptions' ) , title = viewOptions . get ( 'title' ) || '' , background = viewOptions . get ( 'background' ) , css = component . get ( 'css' ) ; for ( var selector in css ) { styles [ '#' + component . id + ' ' + selector ] = css [ selector ] ; } $ . styleSheet ( styles , 'nm-cv-css-' + component . id ) ; t . $ ( '.nm-cv' ) . toggleClass ( 'background' , background === true ) . toggleClass ( 'title' , title . length > 0 ) ; t . $ ( '.nm-cv-title span' ) . text ( title ) ; }
Apply styles for this component ID
Apply styles for this component ID