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