From 69c13fa7ecb09c98df19a52fc7cb1e708000243e Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 6 Nov 2011 21:40:01 -0800 Subject: [PATCH] check the class --- extensions/tree/tree-pane.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tree/tree-pane.coffee b/extensions/tree/tree-pane.coffee index 5d2a2462d..21424174d 100644 --- a/extensions/tree/tree-pane.coffee +++ b/extensions/tree/tree-pane.coffee @@ -24,7 +24,7 @@ class TreePane extends Pane el = $(event.currentTarget) path = decodeURIComponent el.data 'path' - if fs.isDirectory path + if el.hasClass 'dir' if el.hasClass 'open' @tree.hideDir path el.removeClass 'open'