File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
var noopNgModelController = { $setViewValue : noop , $render : noop } ;
4
4
5
- function chromeHack ( optionElement ) {
6
- // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459
7
- // Adding an <option selected="selected"> element to a <select required="required"> should
8
- // automatically select the new element
9
- if ( optionElement [ 0 ] . hasAttribute ( 'selected' ) ) {
10
- optionElement [ 0 ] . selected = true ;
11
- }
12
- }
13
-
14
5
/**
15
6
* @ngdoc type
16
7
* @name select.SelectController
@@ -90,7 +81,6 @@ var SelectController =
90
81
var count = optionsMap . get ( value ) || 0 ;
91
82
optionsMap . put ( value , count + 1 ) ;
92
83
self . ngModelCtrl . $render ( ) ;
93
- chromeHack ( element ) ;
94
84
} ;
95
85
96
86
// Tell the select control that an option, with the given value, has been removed
You can’t perform that action at this time.
0 commit comments