MCPcopy Create free account
hub / github.com/angular-ui/ui-router / renderEmptyOption

Function renderEmptyOption

test/angular/1.5/angular.js:29549–29558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29547 var listFragment = $document[0].createDocumentFragment();
29548
29549 var renderEmptyOption = function() {
29550 if (!providedEmptyOption) {
29551 selectElement.prepend(emptyOption);
29552 }
29553 selectElement.val('');
29554 if (emptyOptionRendered) {
29555 emptyOption.prop('selected', true); // needed for IE
29556 emptyOption.attr('selected', true);
29557 }
29558 };
29559
29560 var removeEmptyOption = function() {
29561 if (!providedEmptyOption) {

Callers 1

ngOptionsPostLinkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected