src/config.js
function(config) {
    $.each(config.customer_fields, function (key, field) {
      if (!defaultConfig.customerFieldsNativeFormats[key]) return
      config.customer_fields[key] = $.extend({}, defaultConfig.customerFieldsNativeFormats[key], field);
    })
    return config
  }
function(config) {
    $.each(config.customer_fields, function (key, field) {
      if (!defaultConfig.customerFieldsNativeFormats[key]) return
      config.customer_fields[key] = $.extend({}, defaultConfig.customerFieldsNativeFormats[key], field);
    })
    return config
  }
function ( config ) { $ . each ( config . customer_fields , function ( key , field ) { if ( ! defaultConfig . customerFieldsNativeFormats [ key ] ) return config . customer_fields [ key ] = $ . extend ( { } , defaultConfig . customerFieldsNativeFormats [ key ] , field ) ; } ) return config }
Set default formats for native fields
Set default formats for native fields