defensing timer recall

This commit is contained in:
Michael Townsend
2023-09-14 14:09:18 -04:00
parent 4fcef234d8
commit fce8af38a8
+1 -1
View File
@@ -1453,7 +1453,7 @@ var Events = {
if(typeof(state[i]) == 'object'){
Events.recallDelay(stateName +'["'+ i +'"]', target[i]);
} else {
if(typeof target[i] == 'function'){
if(target && typeof target[i] == 'function'){
target[i]();
} else {
$SM.remove(stateName);