(current)
| 27681 | |
| 27682 | |
| 27683 | function skipEmptyAndUnknownOptions(current) { |
| 27684 | var emptyOption_ = emptyOption && emptyOption[0]; |
| 27685 | var unknownOption_ = unknownOption && unknownOption[0]; |
| 27686 | |
| 27687 | // We cannot rely on the extracted empty option being the same as the compiled empty option, |
| 27688 | // because the compiled empty option might have been replaced by a comment because |
| 27689 | // it had an "element" transclusion directive on it (such as ngIf) |
| 27690 | if (emptyOption_ || unknownOption_) { |
| 27691 | while (current && |
| 27692 | (current === emptyOption_ || |
| 27693 | current === unknownOption_ || |
| 27694 | current.nodeType === NODE_TYPE_COMMENT || |
| 27695 | (nodeName_(current) === 'option' && current.value === ''))) { |
| 27696 | current = current.nextSibling; |
| 27697 | } |
| 27698 | } |
| 27699 | return current; |
| 27700 | } |
| 27701 | |
| 27702 | |
| 27703 | function updateOptions() { |
no test coverage detected