I\'ve got an unordered [inline] list of links that wraps across two lines:

Based on the accepted answer in coffee:
do lastinline = ->
$('[lastinline]').each ->
$parent = $ @
lastElement = false
$parent.find('> *').each ->
$child = $ @
if lastElement && lastElement.offset().top != $child.offset().top
lastElement.addClass "last-in-line"
lastElement = $child
.last().addClass "last-in-line"
$(window).on 'resize', lastinline