scratch – Diff between revs 58 and 125

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 58 Rev 125
1 define( [ 1 define([
2 "../var/document", -  
3 "../var/support" 2 "../var/support"
4 ], function( document, support ) { 3 ], function( support ) {
5   -  
6 "use strict"; -  
7   4  
8 ( function() { 5 (function() {
9 var input = document.createElement( "input" ), 6 var input = document.createElement( "input" ),
10 select = document.createElement( "select" ), 7 select = document.createElement( "select" ),
11 opt = select.appendChild( document.createElement( "option" ) ); 8 opt = select.appendChild( document.createElement( "option" ) );
12   9  
13 input.type = "checkbox"; 10 input.type = "checkbox";
14   11  
15 // Support: Android <=4.3 only 12 // Support: iOS<=5.1, Android<=4.2+
16 // Default value for a checkbox should be "on" 13 // Default value for a checkbox should be "on"
17 support.checkOn = input.value !== ""; 14 support.checkOn = input.value !== "";
18   15  
19 // Support: IE <=11 only 16 // Support: IE<=11+
20 // Must access selectedIndex to make default options select 17 // Must access selectedIndex to make default options select
21 support.optSelected = opt.selected; 18 support.optSelected = opt.selected;
-   19  
-   20 // Support: Android<=2.3
-   21 // Options inside disabled selects are incorrectly marked as disabled
-   22 select.disabled = true;
-   23 support.optDisabled = !opt.disabled;
22   24  
23 // Support: IE <=11 only 25 // Support: IE<=11+
24 // An input loses its value after becoming a radio 26 // An input loses its value after becoming a radio
25 input = document.createElement( "input" ); 27 input = document.createElement( "input" );
26 input.value = "t"; 28 input.value = "t";
27 input.type = "radio"; 29 input.type = "radio";
28 support.radioValue = input.value === "t"; 30 support.radioValue = input.value === "t";
29 } )(); 31 })();
30   32  
31 return support; 33 return support;
32   34  
33 } ); 35 });
34   36