mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
defensing timer recall
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user