From f558df4d2af147d353a1a66e9c5fa7da578197ff Mon Sep 17 00:00:00 2001 From: Quinton Lee Date: Thu, 4 Feb 2016 12:15:39 -0600 Subject: [PATCH] Fix crash in weather animations --- js/battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/battle.js b/js/battle.js index 2d4161872..01056e369 100644 --- a/js/battle.js +++ b/js/battle.js @@ -2950,8 +2950,8 @@ var Battle = (function () { return; } if (oldweather) { + var self = this; if (weather) { - var self = this; this.weatherElem.animate({ opacity: 0 }, 300, function () {