mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Use addClass instead of add
This commit is contained in:
@@ -31,7 +31,7 @@ class PreviewList extends ScrollView
|
||||
e = $('.selected').closest('.path')
|
||||
return if e.hasClass 'is-collapsed'
|
||||
e.children('ul.matches').hide 100, (e) ->
|
||||
$(this).closest('li.path').add 'is-collapsed'
|
||||
$(this).closest('li.path').addClass 'is-collapsed'
|
||||
|
||||
onPathSelected: (event) =>
|
||||
e = $(event.target)
|
||||
|
||||
Reference in New Issue
Block a user