From b021a483dc4169f2d7cd8f4351defba7e84edec6 Mon Sep 17 00:00:00 2001 From: B Mathis Date: Sat, 14 Nov 2009 14:47:53 -0600 Subject: added check for twitter container in twitter.js --- source/javascripts/twitter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/javascripts/twitter.js') diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index 2d8769ab..fe7ab61b 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), -- cgit v1.2.1