From b021a483dc4169f2d7cd8f4351defba7e84edec6 Mon Sep 17 00:00:00 2001 From: B Mathis Date: Sat, 14 Nov 2009 14:47:53 -0600 Subject: [PATCH] added check for twitter container in twitter.js --- source/javascripts/twitter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index 2d8769a..fe7ab61 100644 --- a/source/javascripts/twitter.js +++ b/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),