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

Function updateOptionElement

lib/test/angular/1.5.0/angular.js:27637–27650  ·  view source on GitHub ↗
(option, element)

Source from the content-addressed store, hash-verified

27635
27636
27637 function updateOptionElement(option, element) {
27638 option.element = element;
27639 element.disabled = option.disabled;
27640 // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive
27641 // selects in certain circumstances when multiple selects are next to each other and display
27642 // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
27643 // See https://github.com/angular/angular.js/issues/11314 for more info.
27644 // This is unfortunately untestable with unit / e2e tests
27645 if (option.label !== element.label) {
27646 element.label = option.label;
27647 element.textContent = option.label;
27648 }
27649 if (option.value !== element.value) element.value = option.selectValue;
27650 }
27651
27652 function addOrReuseElement(parent, current, type, templateElement) {
27653 var element;

Callers 1

updateOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected