()
| 1254 | } |
| 1255 | |
| 1256 | function getSelectInputState() { |
| 1257 | var optionIndex = getSelectInputOptionIndex(); |
| 1258 | var state = {}; |
| 1259 | state.optionIndex = optionIndex; |
| 1260 | state.disabled = selectCtx._disabled; |
| 1261 | if (selectCtx._optionIdxToSubInput.length) { // Make literal state short to save space. |
| 1262 | state.optionStateMap = {}; |
| 1263 | for (var optionIdx = 0; optionIdx < selectCtx._optionIdxToSubInput.length; optionIdx++) { |
| 1264 | if (selectCtx._optionIdxToSubInput[optionIdx]) { |
| 1265 | state.optionStateMap[optionIdx] = selectCtx._optionIdxToSubInput[optionIdx].getState(); |
| 1266 | } |
| 1267 | } |
| 1268 | } |
| 1269 | return state; |
| 1270 | } |
| 1271 | |
| 1272 | function setSelectInputState(state) { |
| 1273 | if (!isObject(state)) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…