From 9ce22fd6d351c30f4454fc9a1df73629aebe8a76 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 3 Dec 2013 13:37:21 -0800 Subject: [PATCH] Add back internally used isPathModified --- src/project.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/project.coffee b/src/project.coffee index 7618b4b9d..a1026ebf5 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -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