Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_createStaticColorsGrid() {
const colorGrid = new ColorGridView( this.locale, {
colorDefinitions: this.colorDefinitions,
columns: this.columns
} );
colorGrid.delegate( 'execute' ).to( this );
return colorGrid;
}
_createDocumentColorsGrid() {
const bind = Template.bind( this.documentColors, this.documentColors );
const documentColorsGrid = new ColorGridView( this.locale, {
columns: this.columns
} );
documentColorsGrid.delegate( 'execute' ).to( this );
documentColorsGrid.extendTemplate( {
attributes: {
class: bind.if( 'isEmpty', 'ck-hidden' )
}
} );
documentColorsGrid.items.bindTo( this.documentColors ).using(
colorObj => {
const colorTile = new ColorTileView();
colorTile.set( {