Skip to content

Commit

Permalink
Merge pull request #26 from typed-immutable/allow-record-subclasses
Browse files Browse the repository at this point in the history
Allow Record subclasses
  • Loading branch information
lukesneeringer committed Jul 27, 2016
2 parents 588a41d + 80458a3 commit d19039a
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 d19039a

Please sign in to comment.