Add back internally used isPathModified

This commit is contained in:
Kevin Sawicki
2013-12-03 13:37:21 -08:00
parent 5166ca274c
commit 9ce22fd6d3

View File

@@ -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