mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add back internally used isPathModified
This commit is contained in:
@@ -181,6 +181,10 @@ class Project extends telepath.Model
|
||||
getBuffers: ->
|
||||
new Array(@buffers.getValues()...)
|
||||
|
||||
# Private: Is the buffer for the given path modified?
|
||||
isPathModified: (filePath) ->
|
||||
@findBufferForPath(@resolve(filePath))?.isModified()
|
||||
|
||||
# Private:
|
||||
findBufferForPath: (filePath) ->
|
||||
_.find @buffers.getValues(), (buffer) -> buffer.getPath() == filePath
|
||||
|
||||
Reference in New Issue
Block a user