(optionEl, value)
| 35000 | var noopNgModelController = { $setViewValue: noop, $render: noop }; |
| 35001 | |
| 35002 | function setOptionSelectedStatus(optionEl, value) { |
| 35003 | optionEl.prop('selected', value); |
| 35004 | /** |
| 35005 | * When unselecting an option, setting the property to null / false should be enough |
| 35006 | * However, screenreaders might react to the selected attribute instead, see |
| 35007 | * https://github.com/angular/angular.js/issues/14419 |
| 35008 | * Note: "selected" is a boolean attr and will be removed when the "value" arg in attr() is false |
| 35009 | * or null |
| 35010 | */ |
| 35011 | optionEl.attr('selected', value); |
| 35012 | } |
| 35013 | |
| 35014 | /** |
| 35015 | * @ngdoc type |
no outgoing calls
no test coverage detected