From 8f15e50a719702deba7212ba42827911e9854f4d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 3 Mar 2012 09:27:13 +0100 Subject: [PATCH] Fix nav variable name confusion. I should capitalize objects someday. --- 4chan_x.user.js | 6 +++--- script.coffee | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6c15c0c22..04aa557c2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3843,7 +3843,7 @@ return $.ready(Main.ready); }, ready: function() { - var MutationObserver, form, nav, nodes, observer, _i, _len, _ref; + var MutationObserver, form, navList, nodes, observer, _i, _len, _ref; if (d.title === '4chan - 404') { redirect.init(); return; @@ -3853,8 +3853,8 @@ $.addClass(d.body, engine); _ref = ['navtop', 'navbot']; for (_i = 0, _len = _ref.length; _i < _len; _i++) { - nav = _ref[_i]; - $.addClass($("a[href$='/" + g.BOARD + "/']", $.id(nav)), 'current'); + navList = _ref[_i]; + $.addClass($("a[href$='/" + g.BOARD + "/']", $.id(navList)), 'current'); } form = $('form[name=delform]'); threading.thread(form.firstElementChild); diff --git a/script.coffee b/script.coffee index cad40a7e0..ec7e7a97e 100644 --- a/script.coffee +++ b/script.coffee @@ -3141,8 +3141,8 @@ Main = return $.addClass d.body, "chanx_#{VERSION.split('.')[1]}" $.addClass d.body, engine - for nav in ['navtop', 'navbot'] - $.addClass $("a[href$='/#{g.BOARD}/']", $.id nav), 'current' + for navList in ['navtop', 'navbot'] + $.addClass $("a[href$='/#{g.BOARD}/']", $.id navList), 'current' form = $ 'form[name=delform]' threading.thread form.firstElementChild Favicon.init()