Working live tweets and filtering tweets
This commit is contained in:
@@ -74,10 +74,10 @@ block.fn.tweets = function(config) {
|
||||
// store list for later
|
||||
// var $list = $("div.tweetcontainer");
|
||||
var $list = document.querySelector("#latest")
|
||||
window.sessionStorage.setItem('tweets', JSON.stringify([]));
|
||||
|
||||
// register default handler for handling tweet data
|
||||
this.actions(function(e, tweet){
|
||||
$(window).trigger("filter");
|
||||
tweets = window.sessionStorage.getItem('tweets');
|
||||
tweets = JSON.parse(tweets);
|
||||
tweets.push(tweet);
|
||||
|
||||
Reference in New Issue
Block a user