seaofclouds/tweet — Issue #206: Dynamically adding tweets to the same html element
Author: rich-tinderfields
Created: 2012-01-20 14:39:25+00:00
State: open

I encountered this problem when using this script, i forked and fixed the issue.

I had 1 element in which the initial feed was going into. On click of something else on the page i was loading a different tweet feed into the same element.

line 217 of the non min version:
$(widget).bind("tweet:load", function(){

This bound the same event to the element object every time the .tweet function is called, quite simply:

$(widget).unbind("tweet:load").bind("tweet:load", function(){

Unbinds the event before adding a new one.