From 0adfd27112d7b6e7d4d19207ff1d1b43f4a134df Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Wed, 15 May 2013 12:05:26 -0700 Subject: [PATCH] This is also redundant it seems --- builds/4chan-X.js | 2 -- builds/4chan-X.user.js | 2 -- builds/crx/script.js | 2 -- src/General/Main.coffee | 2 -- 4 files changed, 8 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 5506d9cdc..014102a0e 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -10054,7 +10054,6 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; @@ -10185,7 +10184,6 @@ initStyle: function() { var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref; - $.off(d, '4chanMainInit', Main.initStyle); if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) { return; } diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 9dcd3641d..616af3736 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10065,7 +10065,6 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; @@ -10196,7 +10195,6 @@ initStyle: function() { var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref; - $.off(d, '4chanMainInit', Main.initStyle); if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) { return; } diff --git a/builds/crx/script.js b/builds/crx/script.js index 34a4e8996..5a32c9f4c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10046,7 +10046,6 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; @@ -10177,7 +10176,6 @@ initStyle: function() { var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref; - $.off(d, '4chanMainInit', Main.initStyle); if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) { return; } diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 82e9c7a37..00107b130 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -18,7 +18,6 @@ Main = $.get Conf, Main.initFeatures - $.on d, '4chanMainInit', Main.initStyle $.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']), Main.initStyle @@ -133,7 +132,6 @@ Main = $.ready Main.initReady initStyle: -> - $.off d, '4chanMainInit', Main.initStyle return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x' # disable the mobile layout $('link[href*=mobile]', d.head)?.disabled = true