All pjax:XXX events should be forwarding the DOM link that was clicked via event.relatedTarget so it can be used downstream if needed (for example active/inactive tabs and such).
This should be done fairly easy by modifying the handleClick function.
I followed the code more closely and I found it in options.clickedElement
$(document).on 'pjax:success', (event, data, status, xhr, options) ->
Actually, I really like the idea of using event.relatedTarget. It also bugs me that options.clickedElement is a jquery object, not an element. Good call.
Add `target` option and set as Event#relatedTarget