(mode, state)
| 788 | // Given a mode and a state (for that mode), find the inner mode and |
| 789 | // state at the position that the state refers to. |
| 790 | function innerMode(mode, state) { |
| 791 | var info; |
| 792 | while (mode.innerMode) { |
| 793 | info = mode.innerMode(state); |
| 794 | if (!info || info.mode == mode) { break } |
| 795 | state = info.state; |
| 796 | mode = info.mode; |
| 797 | } |
| 798 | return info || {mode: mode, state: state} |
| 799 | } |
| 800 | |
| 801 | function startState(mode, a1, a2) { |
| 802 | return mode.startState ? mode.startState(a1, a2) : true |
no outgoing calls
no test coverage detected