diff options
| author | Morgan <morgan.bohn@unistra.fr> | 2015-09-15 13:42:08 +0200 |
|---|---|---|
| committer | Morgan <morgan.bohn@unistra.fr> | 2015-09-15 13:42:08 +0200 |
| commit | e2c33fc218dd3677a7f8366815a6b4de1ff7cde3 (patch) | |
| tree | 3a326f34cd6e8608eab2d42faf364b0b9d77128e /bower_components/jquery/src/attributes/support.js | |
| parent | examples from eiro.github.com (diff) | |
| download | spore.github.io-e2c33fc218dd3677a7f8366815a6b4de1ff7cde3.tar.gz | |
initial commit
Diffstat (limited to 'bower_components/jquery/src/attributes/support.js')
| -rw-r--r-- | bower_components/jquery/src/attributes/support.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bower_components/jquery/src/attributes/support.js b/bower_components/jquery/src/attributes/support.js new file mode 100644 index 0000000..5db5c52 --- /dev/null +++ b/bower_components/jquery/src/attributes/support.js @@ -0,0 +1,35 @@ +define([ + "../var/support" +], function( support ) { + +(function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: iOS<=5.1, Android<=4.2+ + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE<=11+ + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: Android<=2.3 + // Options inside disabled selects are incorrectly marked as disabled + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Support: IE<=11+ + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +})(); + +return support; + +}); |
