From 7c7d79e436f33a64c5e4f6b1175047164fd9263f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 26 Sep 2016 14:36:03 -0700 Subject: [PATCH] Consistency. `placeholder` is inited to null in `Thread` class. --- src/General/Build.coffee | 2 +- src/General/Index.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 2ebfb1224..56843bc6a 100644 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -165,7 +165,7 @@ Build = thread: (thread, data) -> if (root = thread.nodes.root) $.rmAll root - delete thread.nodes.placeholder + thread.nodes.placeholder = null else thread.nodes.root = root = $.el 'div', className: 'thread' diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 3f4fe1b14..b9f1476d0 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -715,7 +715,7 @@ Index = for thread in threads if thread.nodes.placeholder $.replace thread.nodes.placeholder, thread.OP.nodes.root - delete thread.nodes.placeholder + thread.nodes.placeholder = null if (file = thread.OP.file) and (thumb = thread.OP.file.thumb) and thumb.dataset.src thumb.src = thumb.dataset.src # XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1021289