@@ -45,9 +45,10 @@ export class ProtoRecordRange {
4545 * Parses [ast] into [ProtoRecord]s and adds them to [ProtoRecordRange].
4646 *
4747 * @param ast The expression to watch
48- * @param expressionMemento an opaque object which will be passed to WatchGroupDispatcher on
48+ * @param expressionMemento an opaque object which will be passed to ChangeDispatcher on
4949 * detecting a change.
50- * @param content Wether to watch collection content (true) or reference (false, default)
50+ * @param groupMemento
51+ * @param content Whether to watch collection content (true) or reference (false, default)
5152 */
5253 addRecordsFromAST ( ast :AST ,
5354 expressionMemento ,
@@ -65,7 +66,7 @@ export class ProtoRecordRange {
6566 this . recordCreator . createRecordsFromAST ( ast , expressionMemento , groupMemento ) ;
6667 }
6768
68- // TODO(rado): the type annotation should be dispatcher:WatchGroupDispatcher .
69+ // TODO(rado): the type annotation should be dispatcher:ChangeDispatcher .
6970 // but @Implements is not ready yet.
7071 instantiate ( dispatcher , formatters :Map ) :RecordRange {
7172 var recordRange :RecordRange = new RecordRange ( this , dispatcher ) ;
@@ -98,11 +99,11 @@ export class ProtoRecordRange {
9899
99100export class RecordRange {
100101 protoRecordRange :ProtoRecordRange ;
101- dispatcher:any ; //WatchGroupDispatcher
102+ dispatcher:any ; //ChangeDispatcher
102103 headRecord:Record ;
103104 tailRecord:Record ;
104105 disabled:boolean ;
105- // TODO(rado): the type annotation should be dispatcher:WatchGroupDispatcher .
106+ // TODO(rado): the type annotation should be dispatcher:ChangeDispatcher .
106107 // but @Implements is not ready yet.
107108 constructor ( protoRecordRange :ProtoRecordRange , dispatcher ) {
108109 this . protoRecordRange = protoRecordRange ;
@@ -296,8 +297,7 @@ function _linkEnabled(a:Record, b:Record) {
296297 b . prevEnabled = a ;
297298}
298299
299- export class WatchGroupDispatcher {
300- // The record holds the previous value at the time of the call
300+ export class ChangeDispatcher {
301301 onRecordChange ( record :Record , context ) { }
302302}
303303
0 commit comments