From 2e242a9f9d6ca8b8d41196d8ff29e80f8f41fab0 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 11 Jan 2014 19:52:49 -0700 Subject: [PATCH] Holy, how tired was I when I did that? Damn. --- builds/4chan-X.user.js | 6 ++---- builds/crx/script.js | 6 ++---- src/General/Navigate.coffee | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 91e08a981..e1f891e25 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -11898,10 +11898,8 @@ if (g.VIEW === 'catalog' || g.BOARD.ID === 'f') { return; } - ({ - ready: function() { - return $.on(window, 'popstate', Navigate.popstate); - } + $.ready(function() { + return $.on(window, 'popstate', Navigate.popstate); }); Thread.callbacks.push({ name: 'Navigate', diff --git a/builds/crx/script.js b/builds/crx/script.js index 70499ee45..5ce34b6a2 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11887,10 +11887,8 @@ if (g.VIEW === 'catalog' || g.BOARD.ID === 'f') { return; } - ({ - ready: function() { - return $.on(window, 'popstate', Navigate.popstate); - } + $.ready(function() { + return $.on(window, 'popstate', Navigate.popstate); }); Thread.callbacks.push({ name: 'Navigate', diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 02a1c60fe..6b47aea2a 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -3,7 +3,7 @@ Navigate = return if g.VIEW is 'catalog' or g.BOARD.ID is 'f' # blink/webkit throw a popstate on page load. Not what we want. - ready: -> + $.ready -> $.on window, 'popstate', Navigate.popstate Thread.callbacks.push