Remove event emits. Setter handles emitting on change.
This commit is contained in:
@@ -106,12 +106,10 @@ class Peer extends EventEmitter
|
|||||||
email && (this.email = email);
|
email && (this.email = email);
|
||||||
|
|
||||||
this.authenticated = true;
|
this.authenticated = true;
|
||||||
this.emit('authenticationChanged');
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.authenticated = false;
|
this.authenticated = false;
|
||||||
this.emit('authenticationChanged');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user