MCPcopy Create free account
hub / github.com/jakesgordon/javascript-state-machine / apply

Function apply

lib/state-machine.js:608–613  ·  view source on GitHub ↗
(instance, options)

Source from the content-addressed store, hash-verified

606//-------------------------------------------------------------------------------------------------
607
608function apply(instance, options) {
609 var config = new Config(options, StateMachine);
610 build(instance, config);
611 instance._fsm();
612 return instance;
613}
614
615function build(target, config) {
616 if ((typeof target !== 'object') || Array.isArray(target))

Callers 1

StateMachineFunction · 0.70

Calls 1

buildFunction · 0.70

Tested by

no test coverage detected