From 3b0f882d495e32dfc25057e64189d243a5485395 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 26 Mar 2013 18:24:12 -0700 Subject: [PATCH] pets: temporary notification taht pet hatched until we can get around that `model.emit('bulkUpdate')` causing modal redraw (bringing user back to avatar tab) --- src/app/pets.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/pets.coffee b/src/app/pets.coffee index ab298e7ce6..60bb47f327 100644 --- a/src/app/pets.coffee +++ b/src/app/pets.coffee @@ -45,6 +45,8 @@ module.exports.app = (appExports, model) -> user.set 'items.eggs', eggs user.set 'items.food', myFood + alert 'Your egg hatched! Visit your stable to equip your pet.' + #FIXME Bug: this removes from the array properly in the browser, but on refresh is has removed all items from the arrays # user.remove 'items.food', foodIdx, 1 # user.remove 'items.eggs', eggIdx, 1