4chan-x/src/General/lib/thread.class
2013-04-26 14:04:12 -07:00

14 lines
255 B
Plaintext

class Thread
callbacks: []
toString: -> @ID
constructor: (ID, @board) ->
@ID = +ID
@fullID = "#{@board}.#{@ID}"
@posts = {}
g.threads[@fullID] = board.threads[@] = @
kill: ->
@isDead = true
@timeOfDeath = Date.now()