corrade-nucleus-nucleons – Blame information for rev 24
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | define([ |
2 | "../var/support" |
||
3 | ], function( support ) { |
||
4 | |||
5 | (function() { |
||
6 | var input = document.createElement( "input" ), |
||
7 | select = document.createElement( "select" ), |
||
8 | opt = select.appendChild( document.createElement( "option" ) ); |
||
9 | |||
10 | input.type = "checkbox"; |
||
11 | |||
12 | // Support: iOS 5.1, Android 4.x, Android 2.3 |
||
13 | // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere) |
||
14 | support.checkOn = input.value !== ""; |
||
15 | |||
16 | // Must access the parent to make an option select properly |
||
17 | // Support: IE9, IE10 |
||
18 | support.optSelected = opt.selected; |
||
19 | |||
20 | // Make sure that the options inside disabled selects aren't marked as disabled |
||
21 | // (WebKit marks them as disabled) |
||
22 | select.disabled = true; |
||
23 | support.optDisabled = !opt.disabled; |
||
24 | |||
25 | // Check if an input maintains its value after becoming a radio |
||
26 | // Support: IE9, IE10 |
||
27 | input = document.createElement( "input" ); |
||
28 | input.value = "t"; |
||
29 | input.type = "radio"; |
||
30 | support.radioValue = input.value === "t"; |
||
31 | })(); |
||
32 | |||
33 | return support; |
||
34 | |||
35 | }); |