From e180eb2b395b059b4af8c5672b8d0c28ed54b408 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 24 Jul 2013 15:29:03 -0400 Subject: [PATCH] fix to `delete paths['stats.hp']`, hopefully fix #1279 --- src/app/index.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/index.coffee b/src/app/index.coffee index 89cd993836..70e096bce5 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -138,7 +138,8 @@ ready (model) -> # remember that the properties are set from uObj & paths AFTER the return of this callback return if _.isEmpty(paths) or (paths['lastCron'] and _.size(paths) is 1) # for everyone else, we need to reset dom - too many changes have been made and won't it breaks dom listeners. - if lostHp = delete paths['stats.hp'] # we'll set this manually so we can get a cool animation + if paths['stats.hp'] + delete paths['stats.hp'] # we'll set this manually so we can get a cool animation setTimeout -> browser.resetDom(model) user.set 'stats.hp', uObj.stats.hp