Skip to content

Commit

Permalink
Allow Record subclasses
Browse files Browse the repository at this point in the history
This change allows Record subclasses to satisfy the check for a Record.
  • Loading branch information
lukesneeringer committed Jul 27, 2016
1 parent 7b9fd25 commit 80458a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class TypedRecord extends IterableKeyedBase {
[Typed.read](structure) {
const Type = this.constructor

if (structure instanceof Type &&
structure &&
structure.constructor === Type) {
if (structure && structure instanceof Type) {
return structure
}

Expand Down

0 comments on commit 80458a3

Please sign in to comment.