diff --git a/CHANGELOG.md b/CHANGELOG.md index a79d771f3..8383186fc 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v1.8.6.2 +*2014-07-23* + **ccd0** - Fix unread count updating bug in Firefox. diff --git a/LICENSE b/LICENSE index 88e090887..d8710d090 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.8.6.1 - 2014-07-14 +* 4chan X - Version 1.8.6.2 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index d5afa1706..6e1014470 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index bb58f631b..085210fd7 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.8.6.1 +// @version 1.8.6.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index d32222a3a..0f4bd1ffe 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.8.6.1 +// @version 1.8.6.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.6.1 - 2014-07-14 +* 4chan X - Version 1.8.6.2 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -376,7 +376,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.6.1', + VERSION: '1.8.6.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10728,12 +10728,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12519,7 +12527,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13360,7 +13368,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.6.1.' + innerHTML: '4chan X has been updated to version 1.8.6.2.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 48ec5ddd3..4b433e442 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index c46af1dad..ef658abf0 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.8.6.1 +// @version 1.8.6.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -23,7 +23,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.6.1 - 2014-07-14 +* 4chan X - Version 1.8.6.2 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -375,7 +375,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.6.1', + VERSION: '1.8.6.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10727,12 +10727,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12518,7 +12526,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13359,7 +13367,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.6.1.' + innerHTML: '4chan X has been updated to version 1.8.6.2.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 6bab2a26e..78ad22896 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index 1f65d9656..077a03a59 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.8.6.1 +// @version 1.8.6.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d3f52d213..1ec5a5576 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.8.6.1 +// @version 1.8.6.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.6.1 - 2014-07-14 +* 4chan X - Version 1.8.6.2 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -376,7 +376,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.6.1', + VERSION: '1.8.6.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10728,12 +10728,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12519,7 +12527,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13360,7 +13368,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.6.1.' + innerHTML: '4chan X has been updated to version 1.8.6.2.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 1be1fd100..7525cb6dd 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index fb92b71c5..815084870 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index 109e6d259..68432cc62 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index ddf38a9f6..108049be0 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "4chan-X", - "version": "1.8.6.1", + "version": "1.8.6.2", "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X",