Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
When initializing widget, unbind "tweet:load" first, allowing multipl…
Browse files Browse the repository at this point in the history
…e calls to tweet() (fixes #206)
  • Loading branch information
purcell committed Jan 20, 2012
1 parent a72978d commit a692b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweet/jquery.tweet.js
Expand Up @@ -214,7 +214,7 @@
s.username = [s.username];
}

$(widget).bind("tweet:load", function(){
$(widget).unbind("tweet:load").bind("tweet:load", function(){
if (s.loading_text) $(widget).empty().append(loading);
$.getJSON(build_api_url(), function(data){
$(widget).empty().append(list);
Expand Down

0 comments on commit a692b77

Please sign in to comment.