From 6739353d8e115b584f324c1ef68079af30a7da55 Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Thu, 16 Jun 2016 10:21:37 -0700 Subject: [PATCH] :bug:Fix hint intro overview duplicates --- app/views/play/level/HintsState.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/play/level/HintsState.coffee b/app/views/play/level/HintsState.coffee index bf0940a05..6ae340247 100644 --- a/app/views/play/level/HintsState.coffee +++ b/app/views/play/level/HintsState.coffee @@ -10,8 +10,8 @@ module.exports = class HintsState extends Backbone.Model update: -> hints = switch me.getHintsGroup() - when 'hints' then @level.get('documentation')?.hints or [] - when 'hintsB' then @level.get('documentation')?.hintsB or [] + when 'hints' then _.cloneDeep(@level.get('documentation')?.hints or []) + when 'hintsB' then _.cloneDeep(@level.get('documentation')?.hintsB or []) else [] haveIntro = false haveOverview = false @@ -25,6 +25,6 @@ module.exports = class HintsState extends Backbone.Model break if haveIntro and haveOverview total = _.size(hints) @set({ - hints: hints + hints total })