Skip to content

Commit

Permalink
defensing timer recall
Browse files Browse the repository at this point in the history
  • Loading branch information
Continuities committed Sep 14, 2023
1 parent 4fcef23 commit fce8af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fce8af3

Please sign in to comment.