I'm not fond of this: there's a lot of repetition here and it's going to be fragile to DOM changes, namely, it'll break if for whatever reason we ever add children *three* deep beneath the `<li>`.

I think what you were looking for is [`.closest('li')`](http://api.jquery.com/closest/), so something like:

```coffeescript
p = $(event.target).closest('li').find('.path').text()
```

That should work for handling events any depth underneath the list element.

Nice catch, though! I missed the possibility that `$(event.target)` might not be the `li` itself here.