mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
check the class
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user