Commented + Tidying Up
This commit is contained in:
@@ -87,11 +87,11 @@ block.fn.tweets = function(config) {
|
||||
}
|
||||
window.sessionStorage.setItem('tweets', JSON.stringify(tweets));
|
||||
if(!paused) {
|
||||
// remove tweets
|
||||
$list.replaceChildren();
|
||||
var displayTweets = tweets.reverse().slice(0, options.memory).reverse();
|
||||
for (i = 0; i < Math.min(options.memory-1, displayTweets.length); i++){
|
||||
$list.prepend(tweetCell(displayTweets[i]));
|
||||
// remove tweets
|
||||
$list.replaceChildren();
|
||||
var displayTweets = tweets.reverse().slice(0, options.memory).reverse();
|
||||
for (i = 0; i < Math.min(options.memory-1, displayTweets.length); i++){
|
||||
$list.prepend(tweetCell(displayTweets[i]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user