Skip to content

Commit

Permalink
little performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Sep 8, 2019
1 parent e258ad8 commit c0e6b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extendable-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class ExtendableSet extends Set {
}

add (value) {
if (!this.has(value)) {
if (!this.inherits || !this.inherits.has(value)) {
super.add(value)
if (this.extenders.size) {
this.deleteFromExtenders(value)
Expand Down

0 comments on commit c0e6b62

Please sign in to comment.