From 4830bda4c8f63f3b0339ed341185f3e5b9f01022 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 1 Aug 2011 00:11:49 +0200 Subject: [PATCH] Fix theoretical cooldown bug. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 90a75a68f..62a79733a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1196,7 +1196,7 @@ cb: function() { var submit, submits, _i, _j, _len, _len2, _results; submits = $$('#com_submit'); - if (--cooldown.duration) { + if (--cooldown.duration > 0) { _results = []; for (_i = 0, _len = submits.length; _i < _len; _i++) { submit = submits[_i]; diff --git a/script.coffee b/script.coffee index 1d50ba75b..a4b3ce200 100644 --- a/script.coffee +++ b/script.coffee @@ -937,7 +937,7 @@ cooldown = cb: -> submits = $$ '#com_submit' - if --cooldown.duration + if --cooldown.duration > 0 for submit in submits submit.value = cooldown.duration else