src/assets/js/plugin-customizer-preview-templates.js
Function PluginCustomizer
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PluginCustomizer = (function( api, $ ) {
'use strict';
var component = {
data: {
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
component.init = function init( home, sections ) {
_.extend( component.data, home );
_.extend( {}, sections );
if ( ! home || ! home.url ) {
throw new Error( 'Missing args' );