4chan-x/src/General/lib/catalogthread.class
ccd0 b01c372c1a Merge from Appchan X: src/General/lib
deferred: changes to Callbacks.execute
2015-02-06 20:59:54 -08:00

17 lines
481 B
Plaintext

class CatalogThread
@callbacks = new Callbacks 'Catalog Thread'
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 = @