From a7a7df6b7bd1a63a12833c15460c76424b880896 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 9 Jan 2014 11:57:45 -0700 Subject: [PATCH] Hell, lets be a little funny, too. --- builds/4chan-X.user.js | 5 ++--- builds/crx/script.js | 6 ++---- src/Archive/Redirect.coffee | 3 +-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index cfdafb5fa..3137862c2 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9778,7 +9778,7 @@ Redirect = { init: function() { - var archive, archives, boardID, boards, data, files, id, name, o, record, software, type, _i, _len, _ref; + var archive, archives, boardID, boards, data, files, id, name, o, record, software, type, _i, _len, _ref, _ref1; o = { thread: {}, post: {}, @@ -9796,8 +9796,7 @@ } } for (name in archives) { - archive = archives[name]; - data = archive.data, boards = archive.boards, files = archive.files; + _ref1 = archives[name], data = _ref1.data, boards = _ref1.boards, files = _ref1.files; software = data.software; for (_i = 0, _len = boards.length; _i < _len; _i++) { boardID = boards[_i]; diff --git a/builds/crx/script.js b/builds/crx/script.js index 610c89976..cb8688299 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9767,7 +9767,7 @@ Redirect = { init: function() { - var archive, archives, boardID, boards, data, files, id, name, o, record, software, type, _i, _len, _ref; + var archive, archives, boardID, boards, data, files, id, name, o, record, software, type, _i, _len, _ref, _ref1; o = { thread: {}, post: {}, @@ -9785,8 +9785,7 @@ } } for (name in archives) { - archive = archives[name]; - data = archive.data, boards = archive.boards, files = archive.files; + _ref1 = archives[name], data = _ref1.data, boards = _ref1.boards, files = _ref1.files; software = data.software; for (_i = 0, _len = boards.length; _i < _len; _i++) { boardID = boards[_i]; @@ -9801,7 +9800,6 @@ } } } - console.log(o); return Redirect.data = o; }, archives: { diff --git a/src/Archive/Redirect.coffee b/src/Archive/Redirect.coffee index de9e4a4c3..d57ccf08e 100755 --- a/src/Archive/Redirect.coffee +++ b/src/Archive/Redirect.coffee @@ -12,8 +12,7 @@ Redirect = for type, id of record when (archive = archives[id]) and boardID in (if type is 'file' then archive['file'] else archive['boards']) o[type][boardID] = archive.data - for name, archive of archives - {data, boards, files} = archive + for name, {data, boards, files} of archives {software} = data for boardID in boards o.thread[boardID] = data unless boardID of o.thread