(optionEl, value)
| 32749 | var noopNgModelController = { $setViewValue: noop, $render: noop }; |
| 32750 | |
| 32751 | function setOptionSelectedStatus(optionEl, value) { |
| 32752 | optionEl.prop('selected', value); |
| 32753 | /** |
| 32754 | * When unselecting an option, setting the property to null / false should be enough |
| 32755 | * However, screenreaders might react to the selected attribute instead, see |
| 32756 | * https://github.com/angular/angular.js/issues/14419 |
| 32757 | * Note: "selected" is a boolean attr and will be removed when the "value" arg in attr() is false |
| 32758 | * or null |
| 32759 | */ |
| 32760 | optionEl.attr('selected', value); |
| 32761 | } |
| 32762 | |
| 32763 | /** |
| 32764 | * @ngdoc type |
no outgoing calls
no test coverage detected