mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-26 09:28:56 -05:00
Merge pull request #73 from pilif/twitter-js-scope-fix
correctly scope locals
This commit is contained in:
commit
3a599d4159
@ -1,13 +1,15 @@
|
||||
// JSON-P Twitter fetcher for Octopress
|
||||
// (c) Brandon Mathis // MIT Lisence
|
||||
function getTwitterFeed(user, count, replies) {
|
||||
feed = new jXHR();
|
||||
var feed = new jXHR();
|
||||
|
||||
feed.onerror = function (msg,url) {
|
||||
$('#tweets li.loading').addClass('error').text("Twitter's busted");
|
||||
}
|
||||
feed.onreadystatechange = function(data){
|
||||
if (feed.readyState === 4) {
|
||||
var tweets = new Array();
|
||||
var i = 0;
|
||||
for (i in data){
|
||||
if(tweets.length < count){
|
||||
if(replies || data[i].in_reply_to_user_id == null){
|
||||
|
Loading…
Reference in New Issue
Block a user