assets/src/js/fonts.customize-controls.js
Function initializeFontFamilySelect
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initializeFontFamilySelect: function( $element ) {
const selectData = {};
const includedData = {};
const excludedData = {};
const settingValue = this.setting.get();
Function ready
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ready: function() {
const value = this.setting.get();
const $familySelect = this.container.find( '[data-setting-property="family"]' );
const $weightSelect = this.container.find( '[data-setting-property="weight"]' );
const $sizeInput = this.container.find( '[data-setting-property="size"]' );