scratch – Diff between revs 58 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 58 Rev 125
Line 1... Line 1...
1 define( [ 1 define([
2 "../var/document", -  
3 "../var/support" 2 "../var/support"
4 ], function( document, support ) { 3 ], function( support ) {
Line 5... Line -...
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" ),
Line 11... Line 8...
11 opt = select.appendChild( document.createElement( "option" ) ); 8 opt = select.appendChild( document.createElement( "option" ) );
Line 12... Line 9...
12   9  
13 input.type = "checkbox"; 10 input.type = "checkbox";
14   11  
Line 15... Line 12...
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 !== "";
Line -... Line 15...
-   15  
-   16 // Support: IE<=11+
-   17 // Must access selectedIndex to make default options select
-   18 support.optSelected = opt.selected;
-   19  
18   20 // Support: Android<=2.3
19 // Support: IE <=11 only 21 // Options inside disabled selects are incorrectly marked as disabled
20 // Must access selectedIndex to make default options select 22 select.disabled = true;
21 support.optSelected = opt.selected; 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
Line 25... Line 27...
25 input = document.createElement( "input" ); 27 input = document.createElement( "input" );
Line 26... Line 28...
26 input.value = "t"; 28 input.value = "t";