Created
November 7, 2012 15:59
-
-
Save ttepasse/4032441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define [ | |
"helper/HostApp" | |
"controller/Timeline" | |
], | |
(HostApp, Timeline) -> | |
class Mentions extends Timeline | |
constructor: -> | |
@initialized = yes | |
@action = "mentions" | |
@unreadMentions = 0 | |
super | |
newStatus: (status) -> | |
super status | |
if @initalized and @action is "mentions" | |
@unreadMentions += status.length | |
HostApp.unreadMentions @unreadMentions | |
@initialized = yes | |
getNewData: (addToSearch = {}) -> | |
unless addToSearch["mentionedEntity"] | |
addToSearch["mentionedEntity"] = HostApp.stringForKey("entity"); | |
super addToSearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Der erzeugte Code, laut dem Online-Compiler: