Skip to content

Wrong errors for unregistered attributes when using traits #3

@blakewest

Description

@blakewest

When adding an attribute through a trait... such as...

Replicator
  .define('user', {
    name: "Joe Bob"
  }
 .trait("withEmail", {
    email: function(attrs, i) {
      return attrs.name + "@gmai.com";
    }
  }

If I then try to do Replicator.build('user', {email: "blah@gmail.com"}), then it throws an error. It shouldn't.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions