diff --git a/CHANGELOG.md b/CHANGELOG.md index af993ca32..e693ba4a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ ## v1.12.0 +**v1.12.0.9** *(2016-07-07)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.12.0.9/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.12.0.9/builds/4chan-X-noupdate.crx)] +- Partially revert removal of workarounds for old Chromium versions. + **v1.12.0.8** *(2016-07-07)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.12.0.8/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.12.0.8/builds/4chan-X-noupdate.crx)] - Restore `Restart when Opened` option. diff --git a/src/classes/ShimSet.coffee b/src/classes/ShimSet.coffee new file mode 100644 index 000000000..599834c75 --- /dev/null +++ b/src/classes/ShimSet.coffee @@ -0,0 +1,18 @@ +class ShimSet + constructor: -> + @elements = {} + @size = 0 + has: (value) -> + value of @elements + add: (value) -> + return if @elements[value] + @elements[value] = true + @size++ + delete: (value) -> + return unless @elements[value] + delete @elements[value] + @size-- + +window.Set = ShimSet unless 'Set' of window + +return ShimSet