From 2db026830522579d7923a5536663f71596d06228 Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Sat, 16 Nov 2013 15:44:00 -0500 Subject: [PATCH] Fixed resetting filters --- js/Runtime.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/Runtime.js b/js/Runtime.js index 5b5675f..b222af9 100644 --- a/js/Runtime.js +++ b/js/Runtime.js @@ -90,14 +90,16 @@ Runtime.prototype.stopAll = function() { stopAllSounds(); // Hide reporters for (var s = 0; s < runtime.sprites.length; s++) { - if (typeof runtime.sprites[s].hideBubble == 'function') { + if (runtime.sprites[s].hideBubble) { runtime.sprites[s].hideBubble(); } } // Reset graphic effects runtime.stage.resetFilters(); for (var s = 0; s < runtime.sprites.length; s++) { - runtime.sprites[s].resetFilters(); + if (runtime.sprites[s].resetFilters) { + runtime.sprites[s].resetFilters(); + } } };