From acccee33a37103a8664e66dd9371fd83b5fa324b Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 6 May 2014 07:22:09 -0700 Subject: [PATCH] Cleaner conditional init syntax. --- app/lib/world/GoalManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/world/GoalManager.coffee b/app/lib/world/GoalManager.coffee index cc31a61bf..ea13e4188 100644 --- a/app/lib/world/GoalManager.coffee +++ b/app/lib/world/GoalManager.coffee @@ -204,7 +204,7 @@ module.exports = class GoalManager extends CocoClass arrays = (prop for prop in whos when prop?.length) return unless arrays.length - state[progressObjectName] = state[progressObjectName] ? {} + state[progressObjectName] ?= {} for array in arrays for thang in array if @thangTeams[thang]?