TransitionKit icon indicating copy to clipboard operation
TransitionKit copied to clipboard

Adding an isEqual Method

Open Jud opened this issue 10 years ago • 1 comments

When TKStateMachine tries to determine if it can fire an event, it does:

[tkEventInstance.states containsObject: self.currentState];

If you haven't instantiated the current state with the exact TKState instance used when setting up the machine, this will always fail to fire events.

This fixes that issue.

Jud avatar Jul 16 '14 17:07 Jud

@blakewatters Fixed that comparison. Wasn't really using my brain on that one.

Jud avatar Jul 17 '14 14:07 Jud