check the class

This commit is contained in:
Chris Wanstrath
2011-11-06 21:40:01 -08:00
parent b13dcaece1
commit 69c13fa7ec

View File

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