4chan-x/src/General/lib/catalogthread.class
2014-09-19 00:23:56 -07:00

17 lines
480 B
Plaintext

class CatalogThread
@callbacks = new Callbacks 'CatalogThread'
toString: -> @ID
constructor: (root, @thread) ->
@ID = @thread.ID
@board = @thread.board
@nodes =
root: root
thumb: $ '.catalog-thumb', root
icons: $ '.catalog-icons', root
postCount: $ '.post-count', root
fileCount: $ '.file-count', root
pageCount: $ '.page-count', root
comment: $ '.comment', root
@thread.catalogView = @