src/backbone.syphon.js
function(options) {
  var config = _.clone(options) || {};

  config.ignoredTypes = _.clone(Syphon.ignoredTypes);
  config.inputReaders = config.inputReaders || Syphon.InputReaders;
  config.inputWriters = config.inputWriters || Syphon.InputWriters;
  config.keyExtractors = config.keyExtractors || Syphon.KeyExtractors;
  config.keySplitter = config.keySplitter || Syphon.KeySplitter;
  config.keyJoiner = config.keyJoiner || Syphon.KeyJoiner;
  config.keyAssignmentValidators = config.keyAssignmentValidators || Syphon.KeyAssignmentValidators;

  return config;
}
function(options) {
  var config = _.clone(options) || {};

  config.ignoredTypes = _.clone(Syphon.ignoredTypes);
  config.inputReaders = config.inputReaders || Syphon.InputReaders;
  config.inputWriters = config.inputWriters || Syphon.InputWriters;
  config.keyExtractors = config.keyExtractors || Syphon.KeyExtractors;
  config.keySplitter = config.keySplitter || Syphon.KeySplitter;
  config.keyJoiner = config.keyJoiner || Syphon.KeyJoiner;
  config.keyAssignmentValidators = config.keyAssignmentValidators || Syphon.KeyAssignmentValidators;

  return config;
}
function ( options ) { var config = _ . clone ( options ) || { } ; config . ignoredTypes = _ . clone ( Syphon . ignoredTypes ) ; config . inputReaders = config . inputReaders || Syphon . InputReaders ; config . inputWriters = config . inputWriters || Syphon . InputWriters ; config . keyExtractors = config . keyExtractors || Syphon . KeyExtractors ; config . keySplitter = config . keySplitter || Syphon . KeySplitter ; config . keyJoiner = config . keyJoiner || Syphon . KeyJoiner ; config . keyAssignmentValidators = config . keyAssignmentValidators || Syphon . KeyAssignmentValidators ; return config ; }
Build a configuration object and initialize default values.
Build a configuration object and initialize default values .