()
| 687 | } |
| 688 | |
| 689 | function getInputsState() { |
| 690 | var result = {}; |
| 691 | for (var id in _inputsDict) { |
| 692 | if (_inputsDict.hasOwnProperty(id)) { |
| 693 | var inputCreated = _inputsDict[id]; |
| 694 | if (shouldPrevent(id, NANES_PREVENT_INPUTS_STATE) || !inputCreated.getState) { |
| 695 | continue; |
| 696 | } |
| 697 | if (inputCreated.idCanNotPersist) { |
| 698 | throw new Error( |
| 699 | errMsgPrefix + '[getInputsState]. Please specify an id explicitly or unique text' |
| 700 | + ' for input:' + printObject(inputCreated.__inputDefine) |
| 701 | ); |
| 702 | } |
| 703 | result[id] = inputCreated.getState(); |
| 704 | } |
| 705 | } |
| 706 | return result; |
| 707 | } |
| 708 | |
| 709 | function restoreInputsToInitialState() { |
| 710 | assert( |
nothing calls this directly
no test coverage detected
searching dependent graphs…