Skip to content

Commit d059dff

Browse files
committed
fix: Remove unused var
1 parent 8054837 commit d059dff

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/hub/src/scope.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ import { Session } from './session';
2525
* called by the client before an event will be sent.
2626
*/
2727
export class Scope implements ScopeInterface {
28-
/** Flag if notifiying is happening. */
29-
protected _notifyingListeners: boolean = false;
30-
3128
/** Callback for client to receive scope changes. */
3229
protected _scopeListeners: Array<(scope: Scope) => void> = [];
3330

@@ -438,13 +435,9 @@ export class Scope implements ScopeInterface {
438435
* This will be called on every set call.
439436
*/
440437
protected _notifyScopeListeners(): void {
441-
if (!this._notifyingListeners) {
442-
this._notifyingListeners = true;
443-
this._scopeListeners.forEach(callback => {
444-
callback(this);
445-
});
446-
this._notifyingListeners = false;
447-
}
438+
this._scopeListeners.forEach(callback => {
439+
callback(this);
440+
});
448441
}
449442

450443
/**

0 commit comments

Comments
 (0)