dsriseah / ursys

an opinionated javascript library for prototyping realtime web apps
1 stars 2 forks source link

Refactoring PhaseMachine #4

Open dsriseah opened 4 months ago

dsriseah commented 4 months ago

The PhaseMachine is quite old, and could benefit from cleanup. In porting it from GEMSTEP into TypeScript, I noticed some problems with it.

I'd like to add some formal transition event logic to PhaseMachine too, having it control a small global state object that can be used to set flags. However, there is no current need for it with current projects, so it's not a priority.