Permalink
Browse files

added check for twitter container in twitter.js

  • Loading branch information...
1 parent a632295 commit b021a483dc4169f2d7cd8f4351defba7e84edec6 @imathis imathis committed Nov 14, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/javascripts/twitter.js
@@ -67,8 +67,10 @@ function prettyDate(time){
}
function getTwitterStatus(twitter_name){
+ var container = $(twitter_container);
+ if(!container) return;
var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count;
- $(twitter_container).set('html', 'Fetching tweets...');
+ container.set('html', 'Fetching tweets...');
if(!Cookie.read(tweet_cookie)) {
var myTwitterGitter = new TwitterGitter(twitter_name,{
count: ((show_replies) ? tweet_count : 15 + tweet_count),

0 comments on commit b021a48

Please sign in to comment.