Prevent tweet expansion from firing more than once

This commit is contained in:
Akinori MUSHA 2017-09-15 23:35:35 +09:00
parent 5519e6a1a7
commit e99b82b1eb

View file

@ -1,6 +1,7 @@
$ ->
$('.tweet-body').each ->
$(this).click ->
$(this).off('click')
twttr.widgets.createTweet(
this.dataset.tweetId
this