merge.js
function getMergeByTypeAdapter(type)
{
  var adapter = adapters[type] || passThru;

  // only if usage of custom adapters is authorized
  // to prevent global context leaking in
  if (this.useCustomAdapters === behaviors.useCustomAdapters
  && typeof this[type] == 'function'
  )
  {
    adapter = this[type];
  }

  return adapter;
}
function getMergeByTypeAdapter(type)
{
  var adapter = adapters[type] || passThru;

  // only if usage of custom adapters is authorized
  // to prevent global context leaking in
  if (this.useCustomAdapters === behaviors.useCustomAdapters
  && typeof this[type] == 'function'
  )
  {
    adapter = this[type];
  }

  return adapter;
}
function getMergeByTypeAdapter ( type ) { var adapter = adapters [ type ] || passThru ; // only if usage of custom adapters is authorized // to prevent global context leaking in if ( this . useCustomAdapters === behaviors . useCustomAdapters && typeof this [ type ] == 'function' ) { adapter = this [ type ] ; } return adapter ; }
Returns merge adapter for the requested type
either default one or custom one if provided

@param   {string} type - hook type to look for
@returns {function} - merge adapter or pass-thru function, if not adapter found
Returns merge adapter for the requested type either default one or custom one if provided