From 089fa92117f5d0ead54b56ee208a2baa24d9c4e2 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 3 Nov 2016 16:04:17 -0700 Subject: [PATCH] Fix wrong binding on atom-environment.coffee Context: I'm trying to run atom in the browser and have strict mode enabled and it threw on this line. We need it to be a fat arrow otherwise it's adding it to the window (or undefined in strict mode). --- src/atom-environment.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index 61ca495f2..848e6c6e8 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -656,7 +656,7 @@ class AtomEnvironment extends Model restoreWindowDimensions: -> unless @windowDimensions? and @isValidDimensions(@windowDimensions) @windowDimensions = @getDefaultWindowDimensions() - @setWindowDimensions(@windowDimensions).then -> @windowDimensions + @setWindowDimensions(@windowDimensions).then => @windowDimensions restoreWindowBackground: -> if backgroundColor = window.localStorage.getItem('atom:window-background-color')