Tweet web intent event gets called twice


#1

I have used twitter web intents for tweet as described in the web intents documentation. However, the twitter events bind function gets called twice when when the tweet button is clicked. Anyone else has this problem?

Script is as follows.

Also twitter.ready function does not work without wrapping it within document.ready function of jquery.


#2

Bah my mistake. Had two tweet buttons on the page and therefore two scripts were getting rendered. Fixed.


#3

#4