What steps will reproduce the problem? 1. 如果当前最新的一条信息是一条新版本的RT的话 2. 点击refresh按钮,或者等待定时刷新 3. 每次一局部刷新都会多出一条最后的那个RT记录,只能通过完全刷新页面消除这种情况
What is the expected output? What do you see instead? 每次刷新都检测当前的页面状态,只增量显示页面没有的信息
What version of the product are you using? On what operating system? 目前的rabr.in上面的版本有这个问题,应该和客户端操作系统没问题吧
Please provide any additional information below. http://img.ly/mSe http://img.ly/mSf
Comment #1
Posted on Jan 18, 2010 by Swift Elephant我也有这个问题~
Comment #2
Posted on Jan 19, 2010 by Swift Lionhome.js中62行: //var since_id = $(".timeline li:first-child").find(".status_id").text(); var since_id = $(".timeline li:not(.retweet)").eq(0).find(".status_id").text();
其实这里使用被注释的那行就不会出现这个问题了,不知道是什么状况使用了下面那行。。。
Comment #3
Posted on Jan 19, 2010 by Helpful Ox非常感谢你们的反馈!
Comment #4
Posted on Jan 19, 2010 by Swift Lion冒昧的说一句,我觉得这个问题根本原因可能在设计上。如此重要的一个since_id,却如此依赖 于CSS...而且每次都得搜索一遍DOM...是不是把它放在什么地方保存起来比较好呢,只是临时瞎 想,仅供参考。
Comment #5
Posted on Jan 19, 2010 by Grumpy Lion嗯... 其实 status_id 并不重要, 只是一个 tweet 的 id, 用来 reply, retweet, delete, favor 的标识而已, 而从性能角度而言, 用 cookies 储存每个 id 无疑徒增读取操作, 储存在服 务器 session 里, 服务器吃不消, twitter 自己也吃不消 这个 issue 已经 fixed, 稍后 commit
Comment #6
Posted on Jan 19, 2010 by Swift Lion我说的是since_id, 就保存在js变量里可不可以捏
Status: Fixed
Labels:
Type-Defect
Priority-Medium