diff --git a/4chan_x.user.js b/4chan_x.user.js index 37afb88a8..9b0c61da7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -624,6 +624,8 @@ g.threads["" + board.ID + "." + this.ID] = board.threads[this.ID] = this; } + Thread.prototype.callbacks = []; + return Thread; })(); @@ -639,6 +641,8 @@ g.posts["" + board.ID + "." + this.ID] = thread.posts[this.ID] = board.posts[this.ID] = this; } + Post.prototype.callbacks = []; + return Post; })(); diff --git a/script.coffee b/script.coffee index 8cae390fa..0f03b12d8 100644 --- a/script.coffee +++ b/script.coffee @@ -486,6 +486,7 @@ class Thread @posts = {} g.threads["#{board.ID}.#{@ID}"] = board.threads[@ID] = @ + callbacks: [] class Post constructor: (@root, @thread, @board) -> @@ -493,6 +494,7 @@ class Post @el = $ '.post', root g.posts["#{board.ID}.#{@ID}"] = thread.posts[@ID] = board.posts[@ID] = @ + callbacks: [] Main = init: ->