Hmm, not sure why it got rewritten that way, I think @$('a[data-toggle="tab"]').on 'shown.bs.tab' will work fine.