diff options
author | drry | 2008-05-09 21:31:33 +0000 |
---|---|---|
committer | drry | 2008-05-09 21:31:33 +0000 |
commit | 6ad0ae1abb189df75911af7e4f776f91d94b5be3 (patch) | |
tree | 81a2fd7b6ad9b89f5a3644d5fbc932072de2a570 /twitterView.js | |
parent | 420a869ca9c46c8bd6deaaba88e0017437720045 (diff) | |
download | vimperator-plugins-6ad0ae1abb189df75911af7e4f776f91d94b5be3.tar.bz2 |
* 若干怖いのでおそなえ。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11324 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitterView.js')
-rw-r--r-- | twitterView.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/twitterView.js b/twitterView.js index 8e9fe42..95a28c5 100644 --- a/twitterView.js +++ b/twitterView.js @@ -59,7 +59,7 @@ checkTimeline();
updateTimeline();
- setInterval(function() checkTimeline(Date.now() - checkTime), checkTime);
+ setInterval(function() checkTimeline(Date.now() - checkTime - 3), checkTime);
setInterval(updateTimeline, updateTime);
function favoriteStatus(id){
@@ -82,7 +82,7 @@ if(xhr.readyState == 4){
if(xhr.status == 200){
var response = window.eval(xhr.responseText);
- statuses = statuses.concat(response);
+ statuses = statuses.concat(response.filter(function(r) !statuses.some(function(status) status.id == r.id)));
}else{
liberator.echoerr("Twitter Viewer: failed");
}
|