@@ -583,7 +583,7 @@ Doc.prototype._otApply = function(op, source) {
583
583
'Cannot apply op to uncreated document. ' + this . collection + '.' + this . id
584
584
) ;
585
585
}
586
- var extra = { v : source ? this . version : op . v , serverTime : op . serverTime } ;
586
+
587
587
// NB: If we need to add another argument to this event, we should consider
588
588
// the fact that the 'op' event has op.src as its 3rd argument
589
589
this . emit ( 'before op batch' , op . op , source ) ;
@@ -621,7 +621,7 @@ Doc.prototype._otApply = function(op, source) {
621
621
this . data = this . type . apply ( this . data , componentOp . op ) ;
622
622
this . emit ( 'op' , componentOp . op , source , op . src ) ;
623
623
}
624
- this . emit ( 'op batch' , op . op , source , extra ) ;
624
+ this . emit ( 'op batch' , op . op , source ) ;
625
625
// Pop whatever was submitted since we started applying this op
626
626
this . _popApplyStack ( stackLength ) ;
627
627
return ;
@@ -638,7 +638,7 @@ Doc.prototype._otApply = function(op, source) {
638
638
// For ops from other clients, this will be after the op has been
639
639
// committed to the database and published
640
640
this . emit ( 'op' , op . op , source , op . src ) ;
641
- this . emit ( 'op batch' , op . op , source , extra ) ;
641
+ this . emit ( 'op batch' , op . op , source ) ;
642
642
return ;
643
643
}
644
644
0 commit comments