Removed evil evals
Filters now reset when the stop button is clicked.
This commit is contained in:
parent
64535641fc
commit
c40c1b4027
3 changed files with 18 additions and 23 deletions
|
@ -89,6 +89,11 @@ Runtime.prototype.stopAll = function() {
|
|||
if (typeof runtime.sprites[s].hideBubble == 'function')
|
||||
runtime.sprites[s].hideBubble();
|
||||
}
|
||||
// Reset graphic effects
|
||||
for (var s = 0; s < runtime.sprites.length; s++) {
|
||||
if (typeof runtime.sprites[s].hideBubble == 'function')
|
||||
runtime.sprites[s].resetFilters();
|
||||
}
|
||||
}
|
||||
|
||||
// Step method for execution - called every 33 milliseconds
|
||||
|
|
Reference in a new issue