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';
2525 * called by the client before an event will be sent.
2626 */
2727export 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 /**
You can’t perform that action at this time.
0 commit comments