From 0b3fee0822d0f94d39bb910d944b1dfc4ab35411 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 20 Jun 2011 12:17:37 -0700 Subject: [PATCH] unbind firstrun --- 4chan_x.user.js | 3 ++- script.coffee | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a4660102e..6e1e06e32 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2507,7 +2507,8 @@ close: function() { $.setValue('firstrun', true); $.rm($('style.firstrun', d.head)); - return $.rm($('#overlay')); + $.rm($('#overlay')); + return $.unbind(window, 'click', firstRun.close); } }; NAMESPACE = 'AEOS.4chan_x.'; diff --git a/script.coffee b/script.coffee index fb9dd65a2..c685a810a 100644 --- a/script.coffee +++ b/script.coffee @@ -1931,6 +1931,7 @@ firstRun = $.setValue 'firstrun', true $.rm $ 'style.firstrun', d.head $.rm $ '#overlay' + $.unbind window, 'click', firstRun.close #main NAMESPACE = 'AEOS.4chan_x.'