       @updateOverlaysState()
 
   didDestroyDecoration: (decoration) ->
-    return if @batchMode
+    return if @isInBatchMode()
 
     if decoration.isType('line') or decoration.isType('line-number')
       @removeFromLineDecorationCaches(decoration, decoration.getMarker().getScreenRange())

    @disposables.add(decorationDisposables)

  decorationMarkerDidChange: (decoration, change) ->
    return if @batchMode

    if decoration.isType('line') or decoration.isType('line-number')
      return if change.textChanged

  didAddDecoration: (decoration) ->
    @observeDecoration(decoration)

    return if @isInBatchMode()
    if decoration.isType('line') or decoration.isType('line-number')
      @addToLineDecorationCaches(decoration, decoration.getMarker().getScreenRange())
      @updateLinesState() if decoration.isType('line')
