From d7bfda61bff49754f3b826a540a1235ceb9650cc Mon Sep 17 00:00:00 2001 From: Colin Casey Date: Mon, 23 Sep 2013 14:53:28 -0300 Subject: [PATCH] refact(select): use `prop` to modify the `select` property jQuery suggests using `prop` rather than `attr` to modify the `select` property of an element. You can see the full list of migration warnings for jQuery: https://github.com/jquery/jquery-migrate/blob/master/warnings.md Closes #4107 Closes #4122 --- src/ng/directive/select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index 800c783a55a9..c17b24d98f0c 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -553,7 +553,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) { // rather then the element. (element = optionTemplate.clone()) .val(option.id) - .attr('selected', option.selected) + .prop('selected', option.selected) .text(option.label); }