src code

instance method Spah.State#expand

Spah.State#expand(callback[, useExpanders]) → Spah.State

callback (Function): The function to call when all expanders have run. useExpanders (Array): An array of expanders to use instead of the expanders registered directly on this State.

Clones this state instance and executes all expander strategies against the clone.