From d5d3ee86f9667de267c2ca060e5fe72f7a3db282 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 26 Apr 2013 15:08:40 -0700 Subject: [PATCH] Changelog, technical stuff. --- CHANGELOG.md | 5 ++++- builds/4chan-X.js | 9 ++++----- builds/4chan-X.user.js | 9 ++++----- builds/crx/script.js | 6 +++--- src/Miscellaneous/AnnouncementHiding.coffee | 2 +- src/Quotelinks/Quotify.coffee | 2 +- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 125413eec..7decf9738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,15 @@ seaweedchan: - Fix emoji and favicon previews not updating on change. -- Fix issue with draggong thread watcher +- Fix issue with dragging thread watcher MayhemYDG: - Fix bug where a thread would freeze on load. zixaphir: - Fix preview with favicons and emoji +- Fix NaN error on Thread Updater Interval +- Draggable UI can no longer overlap the Header. + -- Setting the header to Autohide also increases its z-index to overlap other UI ### 1.1.1 - 2013-04-26 zixaphir: diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 4c8ae1cea..1cb839138 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -110,8 +110,7 @@ var $, $$, Anonymize, ArchiveLink, Board, Build, CatalogLinks, Clone, Conf, Config, CustomCSS, DataBoard, DataBoards, DeleteLink, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Get, Header, IDColor, ImageExpand, ImageHover, ImageReplace, Keybinds, Linkify, Main, Menu, Nav, Notification, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Sauce, Settings, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, g, __slice = [].slice, __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Config = { main: { @@ -4094,7 +4093,7 @@ a.setAttribute('data-postid', postID); } } - if (__indexOf.call(this.quotes, quoteID) < 0) { + if (!this.quotes.contains(quoteID)) { this.quotes.push(quoteID); } if (!a) { @@ -7626,10 +7625,10 @@ }); }, sync: function(hiddenPSAs) { - var hr, psa, _ref; + var hr, psa; psa = $.id('globalMessage'); - psa.hidden = PSAHiding.btn.hidden = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? true : false; + psa.hidden = PSAHiding.btn.hidden = hiddenPSAs.contains(PSAHiding.trim(psa)) ? true : false; if ((hr = psa.nextElementSibling) && hr.nodeName === 'HR') { return hr.hidden = psa.hidden; } diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 9f40d9955..2af7319b7 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -110,8 +110,7 @@ var $, $$, Anonymize, ArchiveLink, Board, Build, CatalogLinks, Clone, Conf, Config, CustomCSS, DataBoard, DataBoards, DeleteLink, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Get, Header, IDColor, ImageExpand, ImageHover, ImageReplace, Keybinds, Linkify, Main, Menu, Nav, Notification, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteThreading, QuoteYou, Quotify, Recursive, Redirect, RelativeDates, RemoveSpoilers, Report, ReportLink, RevealSpoilers, Sauce, Settings, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, g, __slice = [].slice, __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Config = { main: { @@ -4090,7 +4089,7 @@ a.setAttribute('data-postid', postID); } } - if (__indexOf.call(this.quotes, quoteID) < 0) { + if (!this.quotes.contains(quoteID)) { this.quotes.push(quoteID); } if (!a) { @@ -7647,10 +7646,10 @@ }); }, sync: function(hiddenPSAs) { - var hr, psa, _ref; + var hr, psa; psa = $.id('globalMessage'); - psa.hidden = PSAHiding.btn.hidden = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? true : false; + psa.hidden = PSAHiding.btn.hidden = hiddenPSAs.contains(PSAHiding.trim(psa)) ? true : false; if ((hr = psa.nextElementSibling) && hr.nodeName === 'HR') { return hr.hidden = psa.hidden; } diff --git a/builds/crx/script.js b/builds/crx/script.js index 1995a6d90..bf5dde7c2 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4092,7 +4092,7 @@ a.setAttribute('data-postid', postID); } } - if (__indexOf.call(this.quotes, quoteID) < 0) { + if (!this.quotes.contains(quoteID)) { this.quotes.push(quoteID); } if (!a) { @@ -7630,10 +7630,10 @@ }); }, sync: function(hiddenPSAs) { - var hr, psa, _ref; + var hr, psa; psa = $.id('globalMessage'); - psa.hidden = PSAHiding.btn.hidden = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? true : false; + psa.hidden = PSAHiding.btn.hidden = hiddenPSAs.contains(PSAHiding.trim(psa)) ? true : false; if ((hr = psa.nextElementSibling) && hr.nodeName === 'HR') { return hr.hidden = psa.hidden; } diff --git a/src/Miscellaneous/AnnouncementHiding.coffee b/src/Miscellaneous/AnnouncementHiding.coffee index 8462bdcf9..b0dd838a6 100644 --- a/src/Miscellaneous/AnnouncementHiding.coffee +++ b/src/Miscellaneous/AnnouncementHiding.coffee @@ -57,7 +57,7 @@ PSAHiding = sync: (hiddenPSAs) -> psa = $.id 'globalMessage' - psa.hidden = PSAHiding.btn.hidden = if PSAHiding.trim(psa) in hiddenPSAs + psa.hidden = PSAHiding.btn.hidden = if hiddenPSAs.contains PSAHiding.trim(psa) true else false diff --git a/src/Quotelinks/Quotify.coffee b/src/Quotelinks/Quotify.coffee index d4ca77def..182561de8 100644 --- a/src/Quotelinks/Quotify.coffee +++ b/src/Quotelinks/Quotify.coffee @@ -64,7 +64,7 @@ Quotify = a.setAttribute 'data-boardid', boardID a.setAttribute 'data-postid', postID - unless quoteID in @quotes + unless @quotes.contains quoteID @quotes.push quoteID unless a