MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / skipEmptyAndUnknownOptions

Function skipEmptyAndUnknownOptions

lib/test/angular/1.5.0/angular.js:27683–27700  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

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() {

Callers 1

updateOptionsFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected