mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Can't reference 'this' before calling super in derived class constructors
From https://coffeescript.org/#breaking-changes-super-this
This commit is contained in:
parent
dcea8b74fa
commit
1fd6cb870e
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ class BadgeUI extends UI
|
|||
$badge: null
|
||||
|
||||
constructor: ->
|
||||
super()
|
||||
@$badge = document.getElementById('badge')
|
||||
|
||||
setActive: (connected) ->
|
||||
|
@ -31,6 +32,7 @@ class DebugUI extends UI
|
|||
$status: null
|
||||
|
||||
constructor: ->
|
||||
super()
|
||||
# Setup other DOM handlers if it's debug mode.
|
||||
@$status = document.getElementById('status')
|
||||
@$msglog = document.getElementById('msglog')
|
||||
|
@ -58,6 +60,7 @@ class WebExtUI extends UI
|
|||
stats: null
|
||||
|
||||
constructor: ->
|
||||
super()
|
||||
@initStats()
|
||||
chrome.runtime.onConnect.addListener @onConnect
|
||||
|
||||
|
@ -120,4 +123,3 @@ class WebExtUI extends UI
|
|||
chrome.browserAction.setIcon
|
||||
path:
|
||||
32: "icons/status-" + (if enabled then "on" else "off") + ".png"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue