We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d4993f + 3bf070e commit 8862b41Copy full SHA for 8862b41
1 file changed
statemachine.lua
@@ -74,7 +74,7 @@ end
74
75
function machine:can(e)
76
local event = self.events[e]
77
- local to = event and event.map[self.current]
+ local to = event and event.map[self.current] or event.map['*']
78
return to ~= nil, to
79
end
80
0 commit comments