added counter for golovin
This commit is contained in:
		
							parent
							
								
									5cb7951d44
								
							
						
					
					
						commit
						1e73381863
					
				@ -152,6 +152,8 @@ class HistoryBuffer
 | 
				
			|||||||
    if @buffer[o.creator][o.op_number]?
 | 
					    if @buffer[o.creator][o.op_number]?
 | 
				
			||||||
      throw new Error "You must not overwrite operations!"
 | 
					      throw new Error "You must not overwrite operations!"
 | 
				
			||||||
    @buffer[o.creator][o.op_number] = o
 | 
					    @buffer[o.creator][o.op_number] = o
 | 
				
			||||||
 | 
					    @number_of_operations_added_to_HB ?= 0 # TODO: Debug, remove this
 | 
				
			||||||
 | 
					    @number_of_operations_added_to_HB++
 | 
				
			||||||
    o
 | 
					    o
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  removeOperation: (o)->
 | 
					  removeOperation: (o)->
 | 
				
			||||||
 | 
				
			|||||||
@ -395,8 +395,6 @@ module.exports = (HB)->
 | 
				
			|||||||
    } = json
 | 
					    } = json
 | 
				
			||||||
    new Replaceable content, parent, uid, prev, next, origin
 | 
					    new Replaceable content, parent, uid, prev, next, origin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  types['ListManager'] = ListManager
 | 
					  types['ListManager'] = ListManager
 | 
				
			||||||
  types['MapManager'] = MapManager
 | 
					  types['MapManager'] = MapManager
 | 
				
			||||||
  types['ReplaceManager'] = ReplaceManager
 | 
					  types['ReplaceManager'] = ReplaceManager
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user