From fbf7fc0cdcc381b253614953d7ec7ae6be099917 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 27 Aug 2012 04:41:13 +0200 Subject: [PATCH] Add Thread::callbacks and Post::callbacks. --- 4chan_x.user.js | 4 ++++ script.coffee | 2 ++ 2 files changed, 6 insertions(+) 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: ->