Merge branch 'bstable'
This commit is contained in:
commit
709bfe12fe
@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
## v1.12.0
|
## 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)]
|
**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.
|
- Restore `Restart when Opened` option.
|
||||||
|
|
||||||
|
|||||||
18
src/classes/ShimSet.coffee
Normal file
18
src/classes/ShimSet.coffee
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user