mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Revert changes in src/app/text-buffer.coffee and src/app/pane.coffee
This commit is contained in:
@@ -135,11 +135,11 @@ class Pane extends View
|
||||
@trigger 'pane:item-added', [item, index]
|
||||
item
|
||||
|
||||
destroyActiveItem: (promptToSave=true) =>
|
||||
@destroyItem(@activeItem, promptToSave)
|
||||
destroyActiveItem: =>
|
||||
@destroyItem(@activeItem)
|
||||
false
|
||||
|
||||
destroyItem: (item, promptToSave=true) ->
|
||||
destroyItem: (item) ->
|
||||
container = @getContainer()
|
||||
reallyDestroyItem = =>
|
||||
@removeItem(item)
|
||||
|
||||
@@ -96,8 +96,7 @@ class Buffer
|
||||
@trigger 'reloaded'
|
||||
|
||||
updateCachedDiskContents: ->
|
||||
if @file?
|
||||
@cachedDiskContents = @file.read()
|
||||
@cachedDiskContents = @file.read()
|
||||
|
||||
getBaseName: ->
|
||||
@file?.getBaseName()
|
||||
|
||||
Reference in New Issue
Block a user