From 0f0c50ca3346dbad0143cfe3f32b1e3dcf365efd Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 13 Mar 2014 00:32:48 -0700 Subject: [PATCH] Fix a thread stats bug. --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Monitoring/ThreadStats.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index bae075916..df490233f 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9432,7 +9432,7 @@ if (Conf['Updater and Stats in Header']) { Header.rmShortcut(this.dialog); } else { - $.rm(d.body, sc); + $.rm(this.dialog); } clearTimeout(this.timeout); delete this.timeout; diff --git a/builds/crx/script.js b/builds/crx/script.js index ff6803729..b0be6374c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9447,7 +9447,7 @@ if (Conf['Updater and Stats in Header']) { Header.rmShortcut(this.dialog); } else { - $.rm(d.body, sc); + $.rm(this.dialog); } clearTimeout(this.timeout); delete this.timeout; diff --git a/src/Monitoring/ThreadStats.coffee b/src/Monitoring/ThreadStats.coffee index ad3d869d1..88a4d1940 100755 --- a/src/Monitoring/ThreadStats.coffee +++ b/src/Monitoring/ThreadStats.coffee @@ -40,7 +40,7 @@ ThreadStats = if Conf['Updater and Stats in Header'] Header.rmShortcut @dialog else - $.rm d.body, sc + $.rm @dialog clearTimeout @timeout # a possible race condition might be that this won't clear in time, but the resulting error will prevent issues anyways.