@@ -478,8 +478,6 @@ export class Scope {
478478
479479 this . propertyMap = {
480480 $watch : this . $watch . bind ( this ) ,
481- $watchGroup : this . $watchGroup . bind ( this ) ,
482- $watchCollection : this . $watchCollection . bind ( this ) ,
483481 $new : this . $new . bind ( this ) ,
484482 $newIsolate : this . $newIsolate . bind ( this ) ,
485483 $destroy : this . $destroy . bind ( this ) ,
@@ -499,7 +497,7 @@ export class Scope {
499497 $root : this . $root ,
500498 $children : this . $children ,
501499 $id : this . $id ,
502- registerForeignKey : this . registerForeignKey . bind ( this ) ,
500+ registerForeignKey : this . # registerForeignKey. bind ( this ) ,
503501 notifyListener : this . notifyListener . bind ( this ) ,
504502 $merge : this . $merge . bind ( this ) ,
505503 $getById : this . $getById . bind ( this ) ,
@@ -675,7 +673,7 @@ export class Scope {
675673 keys . push ( get . decoratedNode . body [ 0 ] . expression . left . toWatch [ 0 ] ?. name ) ;
676674 keys . push ( get . decoratedNode . body [ 0 ] . expression . right . toWatch [ 0 ] ?. name ) ;
677675 keys . forEach ( ( key ) => {
678- this . registerKey ( key , listener ) ;
676+ this . # registerKey( key , listener ) ;
679677 } ) ;
680678 return ( ) => {
681679 keys . forEach ( ( key ) => {
@@ -716,7 +714,7 @@ export class Scope {
716714 }
717715 } ) ;
718716 keys . forEach ( ( key ) => {
719- this . registerKey ( key , listener ) ;
717+ this . # registerKey( key , listener ) ;
720718 this . scheduleListener ( [ listener ] ) ;
721719 } ) ;
722720
@@ -745,7 +743,7 @@ export class Scope {
745743 watchProp . split ( "." ) . slice ( 0 , - 1 ) . join ( "." ) ,
746744 ) ( listener . originalTarget ) ;
747745 if ( potentialProxy && this . foreignProxies . has ( potentialProxy ) ) {
748- potentialProxy . $handler . registerForeignKey ( key , listener ) ;
746+ potentialProxy . $handler . # registerForeignKey( key , listener ) ;
749747 potentialProxy . $handler . scheduleListener ( [ listener ] ) ;
750748 return ( ) => {
751749 return potentialProxy . $handler . deregisterKey ( key , listener . id ) ;
@@ -779,7 +777,7 @@ export class Scope {
779777 } )
780778 . filter ( ( x ) => ! ! x ) ;
781779 keys . forEach ( ( key ) => {
782- this . registerKey ( key , listener ) ;
780+ this . # registerKey( key , listener ) ;
783781 this . scheduleListener ( [ listener ] ) ;
784782 } ) ;
785783 return ( ) => {
@@ -846,10 +844,10 @@ export class Scope {
846844
847845 if ( keySet . length > 0 ) {
848846 keySet . forEach ( ( key ) => {
849- this . registerKey ( key , listener ) ;
847+ this . # registerKey( key , listener ) ;
850848 } ) ;
851849 } else {
852- this . registerKey ( key , listener ) ;
850+ this . # registerKey( key , listener ) ;
853851 }
854852
855853 if ( ! lazy ) {
@@ -871,14 +869,6 @@ export class Scope {
871869 } ;
872870 }
873871
874- $watchGroup ( watchArray , listenerFn ) {
875- watchArray . forEach ( ( x ) => this . $watch ( x , listenerFn ) ) ;
876- }
877-
878- $watchCollection ( watchProp , listenerFn ) {
879- return this . $watch ( watchProp , listenerFn ) ;
880- }
881-
882872 $new ( childInstance ) {
883873 let child ;
884874 if ( childInstance ) {
@@ -908,7 +898,6 @@ export class Scope {
908898
909899 $newIsolate ( instance ) {
910900 let child = instance ? Object . create ( instance ) : Object . create ( null ) ;
911- // child.$root = this.$root;
912901 const proxy = new Proxy ( child , new Scope ( this , this . $root ) ) ;
913902 this . $children . push ( proxy ) ;
914903 return proxy ;
@@ -921,22 +910,24 @@ export class Scope {
921910 return proxy ;
922911 }
923912
924- registerKey ( key , listener ) {
913+ # registerKey( key , listener ) {
925914 if ( this . watchers . has ( key ) ) {
926915 this . watchers . get ( key ) . push ( listener ) ;
927916 } else {
928917 this . watchers . set ( key , [ listener ] ) ;
929918 }
930919 }
931920
932- registerForeignKey ( key , listener ) {
921+ # registerForeignKey( key , listener ) {
933922 if ( this . foreignListeners . has ( key ) ) {
934923 this . foreignListeners . get ( key ) . push ( listener ) ;
935924 } else {
936925 this . foreignListeners . set ( key , [ listener ] ) ;
937926 }
938927 }
939-
928+ /**
929+ * @private
930+ */
940931 deregisterKey ( key , id ) {
941932 const listenerList = this . watchers . get ( key ) ;
942933 if ( ! listenerList ) return false ;
@@ -1182,7 +1173,7 @@ export class Scope {
11821173 }
11831174
11841175 /**
1185- * Invokes the registered listener function with watched property changes.
1176+ * @private
11861177 *
11871178 * @param {Listener } listener - The property path that was changed.
11881179 */
0 commit comments