Replace jquery deprecated .live with .on

This commit is contained in:
Marin Jankovski 2014-05-23 14:07:42 +02:00
parent 8ae2d2152b
commit 6990f8a846

View file

@ -12,7 +12,7 @@ class CommitsList
$('.loading').hide()
@init: (ref, limit) ->
$(".day-commits-table li.commit").live 'click', (event) ->
$("body").on "click", ".day-commits-table li.commit", (event) ->
if event.target.nodeName != "A"
location.href = $(this).attr("url")
e.stopPropagation()