File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ import { Session } from './session';
25
25
* called by the client before an event will be sent.
26
26
*/
27
27
export class Scope implements ScopeInterface {
28
- /** Flag if notifiying is happening. */
29
- protected _notifyingListeners : boolean = false ;
30
-
31
28
/** Callback for client to receive scope changes. */
32
29
protected _scopeListeners : Array < ( scope : Scope ) => void > = [ ] ;
33
30
@@ -438,13 +435,9 @@ export class Scope implements ScopeInterface {
438
435
* This will be called on every set call.
439
436
*/
440
437
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
+ } ) ;
448
441
}
449
442
450
443
/**
You can’t perform that action at this time.
0 commit comments