Use fullID when possible.

This commit is contained in:
Nicolas Stepien 2013-03-31 00:35:05 +01:00
parent 09642b63da
commit 7126768855

View File

@ -16,7 +16,7 @@ class Thread
@fullID = "#{@board}.#{@ID}" @fullID = "#{@board}.#{@ID}"
@posts = {} @posts = {}
g.threads["#{board}.#{@}"] = board.threads[@] = @ g.threads[@fullID] = board.threads[@] = @
kill: -> kill: ->
@isDead = true @isDead = true
@ -107,7 +107,7 @@ class Post
@thread.isClosed = !!$ '.closedIcon', @nodes.info @thread.isClosed = !!$ '.closedIcon', @nodes.info
@clones = [] @clones = []
g.posts["#{board}.#{@}"] = thread.posts[@] = board.posts[@] = @ g.posts[@fullID] = thread.posts[@] = board.posts[@] = @
@kill() if that.isArchived @kill() if that.isArchived
parseComment: -> parseComment: ->