mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove buffer change event order assertion
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
c45b978816
commit
83daa09abc
@@ -188,17 +188,6 @@ class TokenizedBuffer extends Model
|
||||
row + delta
|
||||
|
||||
bufferDidChange: (e) ->
|
||||
if @lastBufferChangeEventId?
|
||||
@assert(
|
||||
@lastBufferChangeEventId is e.eventId - 1,
|
||||
'Buffer Change Event Ids are not sequential',
|
||||
(error) =>
|
||||
error.metadata = {
|
||||
tokenizedBufferEventId: @lastBufferChangeEventId,
|
||||
nextTokenizedBufferEventId: e.eventId,
|
||||
}
|
||||
)
|
||||
@lastBufferChangeEventId = e.eventId
|
||||
@changeCount = @buffer.changeCount
|
||||
|
||||
{oldRange, newRange} = e
|
||||
|
||||
Reference in New Issue
Block a user