src/lateralus.mixins.js
function getAugmentedOptionsObject (initialObject) {
  // jshint validthis:true
  const thisIsLateralus = isLateralus(this);
  const augmentedOptions = _.extend(initialObject || {}, {
    lateralus: thisIsLateralus ? this : this.lateralus
  });

  if (!thisIsLateralus) {
    augmentedOptions.component = this.component || this;
  }

  return augmentedOptions;
}
function getAugmentedOptionsObject (initialObject) {
  // jshint validthis:true
  const thisIsLateralus = isLateralus(this);
  const augmentedOptions = _.extend(initialObject || {}, {
    lateralus: thisIsLateralus ? this : this.lateralus
  });

  if (!thisIsLateralus) {
    augmentedOptions.component = this.component || this;
  }

  return augmentedOptions;
}
function getAugmentedOptionsObject ( initialObject ) { // jshint validthis:true const thisIsLateralus = isLateralus ( this ) ; const augmentedOptions = _ . extend ( initialObject || { } , { lateralus : thisIsLateralus ? this : this . lateralus } ) ; if ( ! thisIsLateralus ) { augmentedOptions . component = this . component || this ; } return augmentedOptions ; }
Helper function for initModel and initCollection.
@param {Object} [initialObject]
@return {{ lateralus: Lateralus, component: Lateralus.Component= }}
`component` is not defined if `this` is the Lateralus instance.
@private
Helper function for initModel and initCollection .