src/Class.js
function removeReference(name, opposite) {
  const ref = this.references[name]
  _.unset(this.references, name)
  if (ref.opposite !== undefined) {
    if (opposite) {
      _.unset(ref.type.references, ref.opposite)
    } else {
      _.unset(ref.type.references[ref.opposite], 'opposite')
    }
  }
}
function removeReference(name, opposite) {
  const ref = this.references[name]
  _.unset(this.references, name)
  if (ref.opposite !== undefined) {
    if (opposite) {
      _.unset(ref.type.references, ref.opposite)
    } else {
      _.unset(ref.type.references[ref.opposite], 'opposite')
    }
  }
}
function removeReference ( name , opposite ) { const ref = this . references [ name ] _ . unset ( this . references , name ) if ( ref . opposite !== undefined ) { if ( opposite ) { _ . unset ( ref . type . references , ref . opposite ) } else { _ . unset ( ref . type . references [ ref . opposite ] , 'opposite' ) } } }
Remove a reference from a class
@method
@memberof Class~ClassInstance
@param {string} name - The name of the reference to remove
@param {boolean} opposite - true if the opposite reference should be removed as well
Remove a reference from a class