commit 1fd6cb870e4731d83fe49a55e61ca4a2ce73a00e Author: Arlo Breault arlolra@gmail.com Date: Sat Jul 6 13:03:49 2019 +0200
Can't reference 'this' before calling super in derived class constructors
From https://coffeescript.org/#breaking-changes-super-this --- proxy/ui.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/proxy/ui.coffee b/proxy/ui.coffee index 2cc39dc..fb3c0c2 100644 --- a/proxy/ui.coffee +++ b/proxy/ui.coffee @@ -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" -
tor-commits@lists.torproject.org