Explorar el Código

Prevent tweet expansion from firing more than once

Akinori MUSHA hace 7 años
padre
commit
e99b82b1eb
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/assets/javascripts/tweets.js.coffee

+ 1 - 0
app/assets/javascripts/tweets.js.coffee

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