dist/model.js
function checkAssociatedType(desc, o) {
  var klass = resolve(desc.klass);

  if (o && !(o instanceof klass)) {
    throw new Error(desc.debugName + ": expected an object of type `" + desc.klass + "` but received `" + o + "` instead");
  }
}
function checkAssociatedType(desc, o) {
  var klass = resolve(desc.klass);

  if (o && !(o instanceof klass)) {
    throw new Error(desc.debugName + ": expected an object of type `" + desc.klass + "` but received `" + o + "` instead");
  }
}
function checkAssociatedType ( desc , o ) { var klass = resolve ( desc . klass ) ; if ( o && ! ( o instanceof klass ) ) { throw new Error ( desc . debugName + ": expected an object of type `" + desc . klass + "` but received `" + o + "` instead" ) ; } }
Internal: Checks to make sure the given object is of the type specified in the given association descriptor.  Returns nothing. Throws `Error` if the given object isn't of the type specified in the association descriptor.
Internal : Checks to make sure the given object is of the type specified in the given association descriptor . Returns nothing . Throws Error if the given object isn t of the type specified in the association descriptor .