From dec3ab787389e7e4e7c3ac4cd06581150903a9e2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 4 Jan 2013 15:49:57 -0800 Subject: [PATCH] Only get path if not returning --- src/packages/tree-view/src/file-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/tree-view/src/file-view.coffee b/src/packages/tree-view/src/file-view.coffee index 97502290c..c036673d6 100644 --- a/src/packages/tree-view/src/file-view.coffee +++ b/src/packages/tree-view/src/file-view.coffee @@ -29,11 +29,11 @@ class FileView extends View @updateStatus() updateStatus: -> - path = @getPath() @removeClass('ignored modified new') repo = @project.repo return unless repo? + path = @getPath() if repo.isPathIgnored(path) @addClass('ignored') else if repo.isPathModified(path)